]> git.karo-electronics.de Git - karo-tx-linux.git/commit
When doing a single register write we use work_buf for both the register
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Aug 2011 00:52:39 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Aug 2011 02:50:32 +0000 (12:50 +1000)
commit2b3d340321e4b8c0ac910acf4deb9ff1de21c0b7
treee0d6399e2cc577bc3467596872657ce412c15155
parentf58ba8a9a56fb534b28a85d111cdb1d6654bcaf9
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>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/regmap/regmap.c