summaryrefslogtreecommitdiffstats
path: root/drivers/hid/amd-sfh-hid/amd_sfh_client.c
diff options
context:
space:
mode:
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>2022-07-12 23:48:35 +0530
committerJiri Kosina <jkosina@suse.cz>2022-07-21 13:44:02 +0200
commit014730c40b793fd638b534356cb82c064b2955f5 (patch)
treeee2c703830b38952e4fcaa788e4a41ea4c0fba11 /drivers/hid/amd-sfh-hid/amd_sfh_client.c
parente7f535eaf08f1ea7d8f4ad7c2de2de25d927fd38 (diff)
downloadlinux-014730c40b793fd638b534356cb82c064b2955f5.tar.bz2
HID: amd_sfh: Move interrupt handling to common interface
Interrupt handling can be used in multiple files to support all AMD SOCs. Hence move interrupt handling to common interface. 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_client.c')
-rw-r--r--drivers/hid/amd-sfh-hid/amd_sfh_client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_client.c b/drivers/hid/amd-sfh-hid/amd_sfh_client.c
index 8e686081c8fc..f95e623040f3 100644
--- a/drivers/hid/amd-sfh-hid/amd_sfh_client.c
+++ b/drivers/hid/amd-sfh-hid/amd_sfh_client.c
@@ -178,8 +178,7 @@ static void amd_sfh_resume(struct amd_mp2_dev *mp2)
}
schedule_delayed_work(&cl_data->work_buffer, msecs_to_jiffies(AMD_SFH_IDLE_LOOP));
- if (mp2->mp2_ops->clear_intr)
- mp2->mp2_ops->clear_intr(mp2);
+ amd_sfh_clear_intr(mp2);
}
static void amd_sfh_suspend(struct amd_mp2_dev *mp2)
@@ -202,8 +201,7 @@ static void amd_sfh_suspend(struct amd_mp2_dev *mp2)
}
cancel_delayed_work_sync(&cl_data->work_buffer);
- if (mp2->mp2_ops->clear_intr)
- mp2->mp2_ops->clear_intr(mp2);
+ amd_sfh_clear_intr(mp2);
}
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata)