提交 e7f535ea 编写于 作者: B Basavaraj Natikar 提交者: Jiri Kosina

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: NBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 87cb7952
...@@ -63,7 +63,7 @@ int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type) ...@@ -63,7 +63,7 @@ int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type)
return 0; return 0;
} }
static void amd_sfh_work(struct work_struct *work) void amd_sfh_work(struct work_struct *work)
{ {
struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work.work); struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work.work);
struct request_list *req_list = &cli_data->req_list; struct request_list *req_list = &cli_data->req_list;
...@@ -109,7 +109,7 @@ static void amd_sfh_work(struct work_struct *work) ...@@ -109,7 +109,7 @@ static void amd_sfh_work(struct work_struct *work)
amdtp_hid_wakeup(cli_data->hid_sensor_hubs[current_index]); amdtp_hid_wakeup(cli_data->hid_sensor_hubs[current_index]);
} }
static void amd_sfh_work_buffer(struct work_struct *work) void amd_sfh_work_buffer(struct work_struct *work)
{ {
struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work_buffer.work); struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work_buffer.work);
struct amd_input_data *in_data = cli_data->in_data; struct amd_input_data *in_data = cli_data->in_data;
......
...@@ -64,4 +64,6 @@ struct amd_mp2_ops { ...@@ -64,4 +64,6 @@ struct amd_mp2_ops {
struct amd_input_data *in_data); struct amd_input_data *in_data);
}; };
void amd_sfh_work(struct work_struct *work);
void amd_sfh_work_buffer(struct work_struct *work);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册