Skip to content

Commit b92e301

Browse files
neuschaeferLee Jones
authored andcommitted
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
1 parent 7620ad0 commit b92e301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/mfd/ntxec.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct ntxec {
2626
* This convenience function converts an 8-bit value to 16-bit for use in the
2727
* second kind of register.
2828
*/
29-
static inline __be16 ntxec_reg8(u8 value)
29+
static inline u16 ntxec_reg8(u8 value)
3030
{
3131
return value << 8;
3232
}

0 commit comments

Comments
 (0)