summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-01-28 12:26:21 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-10 11:12:18 +0200
commit57ba2633a1b618816fdee85d5baa52f1874ee07f (patch)
treeb508a9e5b4ce2846a979985bfc54dc76460f509f /drivers
parent16292bed9c56a20715d942fd5d9e025f01fa65fe (diff)
downloadlinux-stable-57ba2633a1b618816fdee85d5baa52f1874ee07f.tar.gz
linux-stable-57ba2633a1b618816fdee85d5baa52f1874ee07f.tar.bz2
linux-stable-57ba2633a1b618816fdee85d5baa52f1874ee07f.zip
platform/x86: intel-hid: Move MODULE_DEVICE_TABLE() closer to the table
Move MODULE_DEVICE_TABLE() closer to the table for better maintenance. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/intel-hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c
index 43d590250228..5f4f5716c893 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[] = {
{"INT33D5", 0},
{"", 0},
};
+MODULE_DEVICE_TABLE(acpi, intel_hid_ids);
/* In theory, these are HID usages. */
static const struct key_entry intel_hid_keymap[] = {
@@ -541,7 +542,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