linux/drivers/base/regmap
Lars-Peter Clausen 720e4616e8 regmap: Make reg_config reg_defaults const
The reg_defaults field usually points to a static per driver array, which should
not be modified. Make requirement this explicit by making reg_defaults const.
To allow this the regcache_init code needs some minor changes. Previoulsy the
reg_config was not available in regcache_init and regmap->reg_defaults was used
to pass the default register set to regcache_init. Now that the reg_config is
available we can work on it directly.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-11-16 17:34:53 +00:00
..
internal.h regmap: Move initialization of regcache related fields to regcache_init 2011-11-16 17:34:53 +00:00
Kconfig regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
Makefile Merge branches 'regmap/irq' and 'regmap/cache' into regmap-next 2011-11-08 14:16:06 +00:00
regcache-indexed.c regmap: Return a sensible error code if we fail to read the cache 2011-10-10 10:24:03 +01:00
regcache-lzo.c regmap: Do not call regcache_exit from regcache_lzo_init error path 2011-11-15 19:22:59 +00:00
regcache-rbtree.c regmap: Do not call regcache_exit from regcache_rbtree_init error path 2011-11-15 19:22:59 +00:00
regcache.c regmap: Make reg_config reg_defaults const 2011-11-16 17:34:53 +00:00
regmap-debugfs.c regmap: Include the last register in debugfs output 2011-09-05 10:58:31 -07:00
regmap-i2c.c regmap: Remove redundant owner field from the bus type struct 2011-09-05 10:57:04 -07:00
regmap-irq.c regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
regmap-spi.c Merge branch 'for-linus' of git://opensource.wolfsonmicro.com/regmap 2011-10-25 13:57:45 +02:00
regmap.c regmap: Move initialization of regcache related fields to regcache_init 2011-11-16 17:34:53 +00:00