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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue