public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()
@ 2024-06-24 19:32 Jonathan Cameron
  2024-06-25 15:21 ` Liam Beguin
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2024-06-24 19:32 UTC (permalink / raw)
  To: linux-iio; +Cc: Jonathan Cameron, Liam Beguin

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Picked up by sparse.

Cc: Liam Beguin <liambeguin@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/adc/ltc2309.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/ltc2309.c b/drivers/iio/adc/ltc2309.c
index 888a71454070..5f0d947d0615 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) |
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-28 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 19:32 [PATCH] iio: adc: ltc2309: Fix endian type passed to be16_to_cpu() Jonathan Cameron
2024-06-25 15:21 ` Liam Beguin
2024-06-28 19:04   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox