Skip to content

Commit f8c28b9

Browse files
committed
platform/x86: asus-tf103c-dock: Make 2 global structs static
tf103c_dock_hid_ll_driver and tf103c_dock_pm_ops are not used outside of the driver, make them both static. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220117112644.260168-2-hdegoede@redhat.com
1 parent f7086da commit f8c28b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/asus-tf103c-dock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int tf103c_dock_hid_raw_request(struct hid_device *hid, u8 reportnum,
250250
return 0;
251251
}
252252

253-
struct hid_ll_driver tf103c_dock_hid_ll_driver = {
253+
static struct hid_ll_driver tf103c_dock_hid_ll_driver = {
254254
.parse = tf103c_dock_hid_parse,
255255
.start = tf103c_dock_hid_start,
256256
.stop = tf103c_dock_hid_stop,
@@ -921,7 +921,7 @@ static int __maybe_unused tf103c_dock_resume(struct device *dev)
921921
return 0;
922922
}
923923

924-
SIMPLE_DEV_PM_OPS(tf103c_dock_pm_ops, tf103c_dock_suspend, tf103c_dock_resume);
924+
static SIMPLE_DEV_PM_OPS(tf103c_dock_pm_ops, tf103c_dock_suspend, tf103c_dock_resume);
925925

926926
static const struct acpi_device_id tf103c_dock_acpi_match[] = {
927927
{"NPCE69A"},

0 commit comments

Comments
 (0)