From: Lars-Peter Clausen Date: Wed, 16 Nov 2011 15:28:17 +0000 (+0100) Subject: regmap: Make reg_config reg_defaults const X-Git-Tag: v3.3-rc1~163^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=720e4616e8fd85284ef1addd8b8d93d8415e8dbc;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed