diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2015-08-21 11:26:42 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-21 19:33:10 +0300 |
commit | 67921a1a6660d32cc2770d05d656a1187b6d94d5 (patch) | |
tree | 7106e1e16b5a97b7ffa38c20bbd54811b3520390 /drivers/base/regmap/regcache.c | |
parent | c594b7f21d7d02115e828db46fddbba1da7ed1b8 (diff) | |
download | linux-67921a1a6660d32cc2770d05d656a1187b6d94d5.tar.xz |
regmap: Split use_single_rw internally into use_single_read/write
use_single_rw currently reflects the capabilities of the connected
device. The capabilities of the bus are currently missing for this
variable.
As there are read only and write only buses we need seperate values for
use_single_rw to also reflect tha capabilities of the bus.
This patch splits use_single_rw into use_single_read and
use_single_write. The initialization is changed to check the
configuration for use_single_rw and to check the capabilities of the
used bus.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap/regcache.c')
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index b9862d741a56..6f8a13ec32a4 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -729,7 +729,7 @@ int regcache_sync_block(struct regmap *map, void *block, unsigned int block_base, unsigned int start, unsigned int end) { - if (regmap_can_raw_write(map) && !map->use_single_rw) + if (regmap_can_raw_write(map) && !map->use_single_write) return regcache_sync_block_raw(map, block, cache_present, block_base, start, end); else |