[PATCH 3/4][SRU][V2][F] platform/x86: intel-hid: Move MODULE_DEVICE_TABLE() closer to the table
Alex Hung
alex.hung at canonical.com
Wed Jan 27 22:21:06 UTC 2021
From: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Move MODULE_DEVICE_TABLE() closer to the table for better maintenance.
Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
(cherry picked from commit 57ba2633a1b618816fdee85d5baa52f1874ee07f)
Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
drivers/platform/x86/intel-hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c
index 6fdf064ba67f..86261970bd8f 100644
--- a/drivers/platform/x86/intel-hid.c
+++ b/drivers/platform/x86/intel-hid.c
@@ -23,6 +23,7 @@ static const struct acpi_device_id intel_hid_ids[] = {
{"INTC1051", 0},
{"", 0},
};
+MODULE_DEVICE_TABLE(acpi, intel_hid_ids);
/* In theory, these are HID usages. */
static const struct key_entry intel_hid_keymap[] = {
@@ -548,7 +549,6 @@ static struct platform_driver intel_hid_pl_driver = {
.probe = intel_hid_probe,
.remove = intel_hid_remove,
};
-MODULE_DEVICE_TABLE(acpi, intel_hid_ids);
/*
* Unfortunately, some laptops provide a _HID="INT33D5" device with
--
2.25.1
More information about the kernel-team
mailing list