iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()
Jonathan Cameron
maintainerPATCH 1/1 iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()
From: Jonathan Cameron <[email protected]>
Picked up by sparse.
Cc Liam Beguin <[email protected]>
Signed-off-by Jonathan Cameron <[email protected]>
--- drivers/iio/adc/ltc2309.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ltc2309.c +1 -1
@@ -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) |
Signature · 1 line
2.45.2
Quoted 6 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Picked up by sparse.
Cc Liam Beguin <[email protected]>Signed-off-by Jonathan Cameron <[email protected]>
Reviewed-by Liam Beguin <[email protected]>
Quoted 20 lines
--- drivers/iio/adc/ltc2309.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/adc/ltc2309.c +1
-1@@ -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) |Signature · 1 line
2.45.2
Quoted 9 lines · On Tue, 25 Jun 2024 11:21:26 -0400 Liam Beguin <[email protected]> wrote:
Quoted 6 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Picked up by sparse.
Cc Liam Beguin <[email protected]>Signed-off-by Jonathan Cameron <[email protected]>Reviewed-by Liam Beguin <[email protected]>
Applied
Quoted 21 lines
Quoted 21 lines
--- drivers/iio/adc/ltc2309.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/adc/ltc2309.c +1
-1@@ -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) |Signature · 1 line
2.45.2