regmap: No multi_write support if bus->write does not exist
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 21 Aug 2015 08:26:43 +0000 (10:26 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2015 16:33:43 +0000 (09:33 -0700)
commit9c9f7f675970ba1b888272f016157de21f69e7e2
tree6ce5c3d958d77b93efd944c4b251734068c0ecf8
parent67921a1a6660d32cc2770d05d656a1187b6d94d5
regmap: No multi_write support if bus->write does not exist

There is no multi_write support available if we cannot use raw_write.
This is the case if bus->write is not implemented.

This patch adds a condition that we need bus and bus->write so that
can_multi_write is true.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c