mfd: twl: Endian fixups in i2c write and read wrappers
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Oct 2019 09:30:15 +0000 (10:30 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 08:45:02 +0000 (08:45 +0000)
commitcbfdc839ea913250bd38528408addf44b27e9e5f
tree5759c218d36ff1d0846c8e9ebad39b3e2946b0ce
parent11c4f2be58c24a43e60f1379e6f23ba027b740e3
mfd: twl: Endian fixups in i2c write and read wrappers

Use a local variable to ensure correct endian types for
intermediate results.

Identified by sparse when building the IIO driver.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/twl.h