Skip to content
Commit 6451058f authored by Basavaraj Natikar's avatar Basavaraj Natikar Committed by Greg Kroah-Hartman
Browse files

HID: amd_sfh: Add illuminance mask to limit ALS max value

commit 91aaea52 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: 0aad9c95

 ("HID: amd_sfh: Extend ALS support for newer AMD platform")
Signed-off-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b3dc4b9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment