Skip to content

Commit 8c68db6

Browse files
basuamdJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6947f31 commit 8c68db6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

drivers/hid/amd-sfh-hid/amd_sfh_client.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
#include "amd_sfh_pcie.h"
1919
#include "amd_sfh_hid.h"
2020

21-
22-
struct request_list {
23-
struct hid_device *hid;
24-
struct list_head list;
25-
u8 report_id;
26-
u8 sensor_idx;
27-
u8 report_type;
28-
u8 current_index;
29-
};
30-
3121
static struct request_list req_list;
3222

3323
void amd_sfh_set_report(struct hid_device *hid, int report_id,

drivers/hid/amd-sfh-hid/amd_sfh_hid.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
#define AMD_SFH_HID_VENDOR 0x1022
1616
#define AMD_SFH_HID_PRODUCT 0x0001
1717

18+
struct request_list {
19+
struct hid_device *hid;
20+
struct list_head list;
21+
u8 report_id;
22+
u8 sensor_idx;
23+
u8 report_type;
24+
u8 current_index;
25+
};
26+
1827
struct amd_input_data {
1928
u32 *sensor_virt_addr[MAX_HID_DEVICES];
2029
u8 *input_report[MAX_HID_DEVICES];

0 commit comments

Comments
 (0)