Searched hist:"720 e4616e8fd85284ef1addd8b8d93d8415e8dbc" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/base/regmap/ |
H A D | regcache.c | diff 720e4616e8fd85284ef1addd8b8d93d8415e8dbc Wed Nov 16 09:28:17 CST 2011 Lars-Peter Clausen <lars@metafoo.de> 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>
|
/openbmc/linux/include/linux/ |
H A D | regmap.h | diff 720e4616e8fd85284ef1addd8b8d93d8415e8dbc Wed Nov 16 09:28:17 CST 2011 Lars-Peter Clausen <lars@metafoo.de> 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>
|