commit | 91aaea527bc3b707c5d3208cde035421ed54f79c | [log] [tgz] |
---|---|---|
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | Mon Jan 31 22:48:33 2022 +0530 |
committer | Jiri Kosina <jkosina@suse.cz> | Wed Feb 02 15:04:26 2022 +0100 |
tree | 1ddcd96d3ecb3decc823deb097b07fc9b8024e0e | |
parent | a7072c01c3ac3ae6ecd08fa7b43431cfc8ed331f [diff] |
HID: amd_sfh: Add illuminance mask to limit ALS max value 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: 0aad9c95eb9a ("HID: amd_sfh: Extend ALS support for newer AMD platform") Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>