]> 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>
Wed, 3 Aug 2011 04:19:15 +0000 (14:19 +1000)
commit1fd661a8f1e0d095055b7188527be240edbfc92b
tree87266362b1659c8eae65a2ff210c26260c4a3d58
parentcc2dc014c9a1a776493c5a99d60b7c39a1ce1162
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