diff options
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2022-07-12 21:18:28 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-07-21 14:43:58 +0300 |
commit | 8c68db65727e1d1e9c75c3e98d08e18afec86f1f (patch) | |
tree | 83d8f58dfb90896bb78807726e1e5693e92fc270 /drivers/hid/amd-sfh-hid/amd_sfh_hid.h | |
parent | 6947f312e5055f64cbcf227fb8c0ab9648473794 (diff) | |
download | linux-8c68db65727e1d1e9c75c3e98d08e18afec86f1f.tar.xz |
HID: amd_sfh: Move request_list struct to header file
request_list structure can be used in multiple files to support all
AMD SOCs. Hence move request_list structure to header file.
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/amd-sfh-hid/amd_sfh_hid.h')
-rw-r--r-- | drivers/hid/amd-sfh-hid/amd_sfh_hid.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_hid.h b/drivers/hid/amd-sfh-hid/amd_sfh_hid.h index ad264db63180..e2e4cc5fc946 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_hid.h +++ b/drivers/hid/amd-sfh-hid/amd_sfh_hid.h @@ -15,6 +15,15 @@ #define AMD_SFH_HID_VENDOR 0x1022 #define AMD_SFH_HID_PRODUCT 0x0001 +struct request_list { + struct hid_device *hid; + struct list_head list; + u8 report_id; + u8 sensor_idx; + u8 report_type; + u8 current_index; +}; + struct amd_input_data { u32 *sensor_virt_addr[MAX_HID_DEVICES]; u8 *input_report[MAX_HID_DEVICES]; |