]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Split use_single_rw internally into use_single_read/write
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 21 Aug 2015 08:26:42 +0000 (10:26 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2015 16:33:10 +0000 (09:33 -0700)
commit7230f92454470d535e78cc3b34f199007b94a8cd
tree7106e1e16b5a97b7ffa38c20bbd54811b3520390
parent48838156e7d2d20904c732d6992fa41adca74768
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>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap-irq.c
drivers/base/regmap/regmap.c