]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regmap: Support bulk reads for devices without raw formatting
authorMark Brown <broonie@kernel.org>
Fri, 28 Aug 2015 19:04:53 +0000 (20:04 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 31 Aug 2015 10:15:07 +0000 (11:15 +0100)
commitd5b98eb12420ce856caaf57dc5256eedc56a3747
tree563e312e36672c13caed1bad13bf1906ff3442cc
parent9c9f7f675970ba1b888272f016157de21f69e7e2
regmap: Support bulk reads for devices without raw formatting

When doing a bulk read from a device which lacks raw I/O support we fall
back to doing register at a time reads but we still use the raw
formatters in order to render the data into the word size used by the
device (since bulk reads still operate on the device word size rather
than unsigned ints).  This means that devices without raw formatting
such as those that provide reg_read() are not supported.  Provide
handling for them by copying the values read into native endian values
of the appropriate size.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c