From: Mark Brown Date: Wed, 20 Jul 2011 21:33:39 +0000 (+0100) Subject: regmap: Allow devices to specify which registers are accessible X-Git-Tag: v3.2-rc1~181^2~56^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2ae66df37a14c9b33889b243b0ae1352ada1dd;p=pandora-kernel.git regmap: Allow devices to specify which registers are accessible This is currently unused but we need to know which registers exist and their properties in order to implement diagnostics like register map dumps and the cache features. We use callbacks partly because properties can vary at runtime (eg, through access locks on registers) and partly because big switch statements are a good compromise between readable code and small data size for providing information on big register maps. Signed-off-by: Mark Brown --- Reading git-diff-tree failed