diff options
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2023-12-20 10:00:41 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-01-04 17:19:17 +0300 |
commit | b5b0774d53bb81bddbf8c609b3f183d4af6e91da (patch) | |
tree | fef42bf8fa3bfccce75d6118ca81062b7c39f5b9 /drivers/hid/amd-sfh-hid/amd_sfh_common.h | |
parent | 4e71d262899d7bab1f0c65936a2e639afeb83e4d (diff) | |
download | linux-b5b0774d53bb81bddbf8c609b3f183d4af6e91da.tar.xz |
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>
Diffstat (limited to 'drivers/hid/amd-sfh-hid/amd_sfh_common.h')
-rw-r--r-- | drivers/hid/amd-sfh-hid/amd_sfh_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_common.h b/drivers/hid/amd-sfh-hid/amd_sfh_common.h index 2643bb14fee2..cd57037bf217 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_common.h +++ b/drivers/hid/amd-sfh-hid/amd_sfh_common.h @@ -37,6 +37,10 @@ struct amd_mp2_sensor_info { dma_addr_t dma_address; }; +struct sfh_dev_status { + bool is_hpd_present; +}; + struct amd_mp2_dev { struct pci_dev *pdev; struct amdtp_cl_data *cl_data; @@ -47,6 +51,7 @@ struct amd_mp2_dev { struct amd_input_data in_data; /* mp2 active control status */ u32 mp2_acs; + struct sfh_dev_status dev_en; }; struct amd_mp2_ops { |