From: Jonathan Cameron Date: Mon, 24 Jun 2024 19:32:10 +0000 (+0100) Subject: iio: adc: ltc2309: Fix endian type passed to be16_to_cpu() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9641972917d69790ef55ef4d434b564955432d1f;p=users%2Fjedix%2Flinux-maple.git iio: adc: ltc2309: Fix endian type passed to be16_to_cpu() Picked up by sparse. Cc: Liam Beguin Reviewed-by: Liam Beguin Link: https://patch.msgid.link/20240624193210.347434-1-jic23@kernel.org Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/ltc2309.c b/drivers/iio/adc/ltc2309.c index 888a71454070f..5f0d947d06157 100644 --- a/drivers/iio/adc/ltc2309.c +++ b/drivers/iio/adc/ltc2309.c @@ -103,7 +103,7 @@ static int ltc2309_read_raw_channel(struct ltc2309 *ltc2309, unsigned long address, int *val) { int ret; - u16 buf; + __be16 buf; u8 din; din = FIELD_PREP(LTC2309_DIN_CH_MASK, address & 0x0f) |