> On 12/15/2013 10:36 AM, Alexander Shiyan wrote: > > In some cases, clear interrupt register may be at address 0. > > This patch allows to use such configurations by adding additional > > configuration bit to indicate this. > > > > Signed-off-by: Alexander Shiyan <shc_w...@mail.ru> > > --- > > drivers/base/regmap/regmap-irq.c | 6 +++--- > > include/linux/regmap.h | 5 ++++- > > 2 files changed, 7 insertions(+), 4 deletions(-) ... > > diff --git a/include/linux/regmap.h b/include/linux/regmap.h > > index e559078..3a36f61 100644 > > --- a/include/linux/regmap.h > > +++ b/include/linux/regmap.h ... > > @@ -520,6 +522,7 @@ struct regmap_irq_chip { > > unsigned int irq_reg_stride; > > bool init_ack_masked:1; > > bool mask_invert:1; > > + bool use_ack:1; > I think this will break something. Better use 0 as default value. > Reason I think so, is because in the above code you effectively add a new > possibility for most code to run.
This is not a default value but bit-size of this field. ---