regmap: Introduce max_raw_read/write for regmap_bulk_read/write
authorMarkus Pargmann <mpa@pengutronix.de>
Sun, 30 Aug 2015 07:33:53 +0000 (09:33 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 30 Aug 2015 09:19:22 +0000 (10:19 +0100)
commitadaac459759db4a1fd35baddbe47bac700095496
tree189657c7dffdc13de7f780eb35c1299fb8dbf3fa
parent10524612e8aa98804190ec7d0b380cf99c3bdbd7
regmap: Introduce max_raw_read/write for regmap_bulk_read/write

There are some buses which have a limit on the maximum number of bytes
that can be send/received. An example for this is
I2C_FUNC_SMBUS_I2C_BLOCK which does not support any reads/writes of more
than 32 bytes. The regmap_bulk operations should still be able to
utilize the full 32 bytes in this case.

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