regmap: Just send the buffer directly for single register writes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 20 Jul 2011 20:47:22 +0000 (21:47 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 8 Aug 2011 06:52:25 +0000 (15:52 +0900)
When doing a single register write we use work_buf for both the register
and the value with the buffer formatted for sending directly to the device
so we can just do a write() directly. This saves allocating a temporary
buffer if we can't do gather writes and is likely to be faster than doing
a gather write.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found