From: Davide Ciminaghi Date: Tue, 20 Nov 2012 14:20:30 +0000 (+0100) Subject: regmap: introduce tables for readable/writeable/volatile/precious checks X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~61^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76aad392f75e6ce5be3f106554e16f7ff96543e5;p=pandora-kernel.git regmap: introduce tables for readable/writeable/volatile/precious checks Many of the regmap enabled drivers implementing one or more of the readable, writeable, volatile and precious methods use the same code pattern: return ((reg >= X && reg <= Y) || (reg >= W && reg <= Z) || ...) Switch to a data driven approach, using tables to describe readable/writeable/volatile and precious registers ranges instead. The table based check can still be overridden by passing the usual function pointers via struct regmap_config. Signed-off-by: Davide Ciminaghi Signed-off-by: Mark Brown --- Reading git-diff-tree failed