Commit 96419729 authored by Jonathan Cameron's avatar Jonathan Cameron

iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()

Picked up by sparse.

Cc: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: default avatarLiam Beguin <liambeguin@gmail.com>
Link: https://patch.msgid.link/20240624193210.347434-1-jic23@kernel.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 92436305
......@@ -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) |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment