platform/x86/amd/pmf: Get ambient light information from AMD SFH driver
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Tue, 23 Jan 2024 14:14:58 +0000 (19:44 +0530)
committerHans de Goede <hdegoede@redhat.com>
Fri, 26 Jan 2024 19:12:05 +0000 (20:12 +0100)
commitcedecdba60f4a42a8562574119f317ed0c674b5a
tree2da23aede41f771001e75c9d2afce0a403a6e9ea
parent118063f3803324411be0e601d560ed7d1c9824b0
platform/x86/amd/pmf: Get ambient light information from AMD SFH driver

AMD SFH driver has APIs defined to export the ambient light information;
use this within the PMF driver to send inputs to the PMF TA, so that PMF
driver can enact to the actions coming from the TA.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20240123141458.3715211-2-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/spc.c