diff options
author | Davide Ciminaghi <ciminaghi@gnudd.com> | 2012-11-20 15:20:30 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-21 03:10:31 +0100 |
commit | 76aad392f75e6ce5be3f106554e16f7ff96543e5 (patch) | |
tree | 00d1ef2dad497331dca8860e7ecc9474d0bab7b5 /drivers/parisc | |
parent | Merge branch 'topic/lock' of git://git.kernel.org/pub/scm/linux/kernel/git/br... (diff) | |
download | linux-76aad392f75e6ce5be3f106554e16f7ff96543e5.tar.xz linux-76aad392f75e6ce5be3f106554e16f7ff96543e5.zip |
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 <ciminaghi@gnudd.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions