Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: amd_sfh: Add illuminance mask to limit ALS max value
commit 91aaea5 upstream. ALS illuminance value present only in first 15 bits from SFH firmware for V2 platforms. Hence added a mask of 15 bit to limit ALS max illuminance values to get correct illuminance value. Fixes: 0aad9c9 ("HID: amd_sfh: Extend ALS support for newer AMD platform") Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information