mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
staging:iio:ad7476: Use be16_to_cpup instead of open-coding it
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
7a28fe3c93
commit
610a407cdc
@ -83,7 +83,7 @@ static int ad7476_scan_direct(struct ad7476_state *st)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return (st->data[0] << 8) | st->data[1];
|
||||
return be16_to_cpup((__be16 *)st->data);
|
||||
}
|
||||
|
||||
static int ad7476_read_raw(struct iio_dev *indio_dev,
|
||||
|
Loading…
Reference in New Issue
Block a user