Skip to content

Commit e7f535e

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Move amd_sfh_work to common interface
amd_sfh_work can be used in multiple files to support all AMD SOCs. Hence move amd_sfh_work to common interface. Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 87cb795 commit e7f535e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type)
6363
return 0;
6464
}
6565

66-
static void amd_sfh_work(struct work_struct *work)
66+
void amd_sfh_work(struct work_struct *work)
6767
{
6868
struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work.work);
6969
struct request_list *req_list = &cli_data->req_list;
@@ -109,7 +109,7 @@ static void amd_sfh_work(struct work_struct *work)
109109
amdtp_hid_wakeup(cli_data->hid_sensor_hubs[current_index]);
110110
}
111111

112-
static void amd_sfh_work_buffer(struct work_struct *work)
112+
void amd_sfh_work_buffer(struct work_struct *work)
113113
{
114114
struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work_buffer.work);
115115
struct amd_input_data *in_data = cli_data->in_data;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@ struct amd_mp2_ops {
6464
struct amd_input_data *in_data);
6565
};
6666

67+
void amd_sfh_work(struct work_struct *work);
68+
void amd_sfh_work_buffer(struct work_struct *work);
6769
#endif

0 commit comments

Comments
 (0)