HID: amd_sfh: Add a new interface for exporting HPD data
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Wed, 20 Dec 2023 07:00:41 +0000 (12:30 +0530)
committerJiri Kosina <jkosina@suse.com>
Thu, 4 Jan 2024 14:19:17 +0000 (15:19 +0100)
commitb5b0774d53bb81bddbf8c609b3f183d4af6e91da
treefef42bf8fa3bfccce75d6118ca81062b7c39f5b9
parent4e71d262899d7bab1f0c65936a2e639afeb83e4d
HID: amd_sfh: Add a new interface for exporting HPD data

AMDSFH has information about the User presence information via the Human
Presence Detection (HPD) sensor 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/
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>
drivers/hid/amd-sfh-hid/amd_sfh_common.h
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.c
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h
include/linux/amd-pmf-io.h [new file with mode: 0644]