diff options
author | Ian Ray <[email protected]> | 2023-01-27 14:57:14 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-01-28 17:58:56 +0000 |
commit | 6327a930ab7bfa1ab33bcdffd5f5f4b1e7131504 (patch) | |
tree | 9a342c4171b0629e3225623edc76a4f11cf3edbe /net/unix/af_unix.c | |
parent | 701c875aded880013aacac608832995c4b052257 (diff) |
drivers: iio: adc: ltc2497: fix LSB shift
Correct the "sub_lsb" shift for the ltc2497 and drop the sub_lsb element
which is now constant.
An earlier version of the code shifted by 14 but this was a consequence
of reading three bytes into a __be32 buffer and using be32_to_cpu(), so
eight extra bits needed to be skipped. Now we use get_unaligned_be24()
and thus the additional skip is wrong.
Fixes: 2187cfeb3626 ("drivers: iio: adc: ltc2497: LTC2499 support")
Signed-off-by: Ian Ray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions