mfd: Push byte swap out of WM8994 bulk I/O
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Mar 2011 21:42:29 +0000 (21:42 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:42:10 +0000 (10:42 +0100)
commit4277163c2a451fd8db0883cde5e55cf61a70fe85
tree9044303832b24eef57534ea45f45e9d26cc30b26
parent334e9ab8f9bb90ddf1eff0b07609961a628064b6
mfd: Push byte swap out of WM8994 bulk I/O

For bulk I/O it is both convenient and more sensible to pre-swap the data
rather than doing the swap as part of the I/O operation so move the byte
swaps we're currently doing into the core write function into the register
based functions, giving the bulk write function a straight pass through
to the chip.

This leaves reads inconsistent, this will be addressed as a followup patch.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-core.c