Skip to content

Commit

Permalink
iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()
Browse files Browse the repository at this point in the history
Picked up by sparse.

Cc: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: Liam Beguin <liambeguin@gmail.com>
Link: https://patch.msgid.link/20240624193210.347434-1-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
jic23 committed Jun 28, 2024
1 parent 9243630 commit 9641972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ltc2309.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down

0 comments on commit 9641972

Please sign in to comment.