regmap: Split use_single_rw internally into use_single_read/write
commit67921a1a6660d32cc2770d05d656a1187b6d94d5
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 21 Aug 2015 08:26:42 +0000 (21 10:26 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2015 16:33:10 +0000 (21 09:33 -0700)
tree7106e1e16b5a97b7ffa38c20bbd54811b3520390
parentc594b7f21d7d02115e828db46fddbba1da7ed1b8
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