diff options
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2023-12-20 10:00:42 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-01-04 17:19:17 +0300 |
commit | 584f35a3647d42980af495fc0bc5c51eb174aa35 (patch) | |
tree | 330e1475772898a343eb0d34f2523182caae67a0 /include/linux/amd-pmf-io.h | |
parent | b5b0774d53bb81bddbf8c609b3f183d4af6e91da (diff) | |
download | linux-584f35a3647d42980af495fc0bc5c51eb174aa35.tar.xz |
HID: amd_sfh: Add a new interface for exporting ALS data
AMDSFH has information about the Ambient light via the Ambient
Light Sensor (ALS) which is part of the AMD sensor fusion hub.
Add a new interface to export this information, where other drivers like
PMF can use this information to enhance user experiences.
Link: https://lore.kernel.org/all/ad064333-48a4-4cfa-9428-69e8a7c44667@redhat.com/
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Co-developed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'include/linux/amd-pmf-io.h')
-rw-r--r-- | include/linux/amd-pmf-io.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/amd-pmf-io.h b/include/linux/amd-pmf-io.h index 5b6d29d36922..b4f818205216 100644 --- a/include/linux/amd-pmf-io.h +++ b/include/linux/amd-pmf-io.h @@ -17,9 +17,11 @@ /** * enum sfh_message_type - Query the SFH message type * @MT_HPD: Message ID to know the Human presence info from MP2 FW + * @MT_ALS: Message ID to know the Ambient light info from MP2 FW */ enum sfh_message_type { MT_HPD, + MT_ALS, }; /** @@ -36,9 +38,11 @@ enum sfh_hpd_info { /** * struct amd_sfh_info - get HPD sensor info from MP2 FW + * @ambient_light: Populates the ambient light information * @user_present: Populates the user presence information */ struct amd_sfh_info { + u32 ambient_light; u8 user_present; }; |