Commit 0cc2effb authored by Mario Limonciello's avatar Mario Limonciello Committed by Jiri Kosina
Browse files

HID: amd_sfh: Fix SRA sensor when it's the only sensor



On systems that only have an SRA sensor connected to SFH the sensor
doesn't get enabled due to a bad optimization condition of breaking
the sensor walk loop.

This optimization is unnecessary in the first place because if there
is only one device then the loop only runs once. Drop the condition
and explicitly mark sensor as enabled.

Reported-by: default avatarYijun Shen <Yijun.Shen@dell.com>
Tested-By: default avatarYijun Shen <Yijun_Shen@Dell.com>
Fixes: d1c444b4 ("HID: amd_sfh: Add support to export device operating states")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Acked-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 6bf8ab77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment