mfd: ntxec: Change return type of ntxec_reg8 from __be16 to u16
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 18 Dec 2021 15:25:53 +0000 (16:25 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Dec 2021 13:41:20 +0000 (13:41 +0000)
commitb92e301633f0f454aa1cfedac2e096bb9649b367
tree8df38595c72e121720716aa43601243f17ad4504
parent7620ad0bdfac1efff4a1228cd36ae62a9d8206b0
mfd: ntxec: Change return type of ntxec_reg8 from __be16 to u16

Register values in NTXEC are big-endian on the I2C bus, but the regmap
subsystem handles the conversion between CPU-endian and big-endian data
internally. ntxec_reg8 should thus return u16, not __be16.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211218152553.744615-1-j.neuschaefer@gmx.net
include/linux/mfd/ntxec.h