forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: si1133: read 24-bit signed integer for measurement
The chip is configured in 24 bit mode. The values read from it must always be treated as is. This fixes the issue by replacing the previous 16 bits value by a 24 bits buffer. This changes affects the value output by previous version of the driver, since the least significant byte was missing. The upper half of 16 bit values previously output are now the upper half of a 24 bit value. Fixes: e01e7ea ("iio: light: introduce si1133") Reported-by: Simon Goyette <[email protected]> Co-authored-by: Guillaume Champagne <[email protected]> Signed-off-by: Maxime Roussin-Bélanger <[email protected]> Signed-off-by: Guillaume Champagne <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters