File tree Expand file tree Collapse file tree 2 files changed +28
-15
lines changed
drivers/platform/x86/dell Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-or-later */
2
+ /*
3
+ * ACPI SMO88XX lis3lv02d freefall / accelerometer device-ids.
4
+ *
5
+ * Copyright (C) 2012 Sonal Santan <[email protected] >
6
+ * Copyright (C) 2014 Pali Rohár <[email protected] >
7
+ */
8
+ #ifndef _DELL_SMO8800_IDS_H_
9
+ #define _DELL_SMO8800_IDS_H_
10
+
11
+ #include <linux/mod_devicetable.h>
12
+ #include <linux/module.h>
13
+
14
+ static const struct acpi_device_id smo8800_ids [] = {
15
+ { "SMO8800" },
16
+ { "SMO8801" },
17
+ { "SMO8810" },
18
+ { "SMO8811" },
19
+ { "SMO8820" },
20
+ { "SMO8821" },
21
+ { "SMO8830" },
22
+ { "SMO8831" },
23
+ { }
24
+ };
25
+ MODULE_DEVICE_TABLE (acpi , smo8800_ids );
26
+
27
+ #endif
Original file line number Diff line number Diff line change 14
14
#include <linux/interrupt.h>
15
15
#include <linux/kernel.h>
16
16
#include <linux/miscdevice.h>
17
- #include <linux/mod_devicetable.h>
18
17
#include <linux/module.h>
19
18
#include <linux/platform_device.h>
20
19
#include <linux/uaccess.h>
20
+ #include "dell-smo8800-ids.h"
21
21
22
22
struct smo8800_device {
23
23
u32 irq ; /* acpi device irq */
@@ -163,20 +163,6 @@ static void smo8800_remove(struct platform_device *device)
163
163
dev_dbg (& device -> dev , "device /dev/freefall unregistered\n" );
164
164
}
165
165
166
- /* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */
167
- static const struct acpi_device_id smo8800_ids [] = {
168
- { "SMO8800" , 0 },
169
- { "SMO8801" , 0 },
170
- { "SMO8810" , 0 },
171
- { "SMO8811" , 0 },
172
- { "SMO8820" , 0 },
173
- { "SMO8821" , 0 },
174
- { "SMO8830" , 0 },
175
- { "SMO8831" , 0 },
176
- { "" , 0 },
177
- };
178
- MODULE_DEVICE_TABLE (acpi , smo8800_ids );
179
-
180
166
static struct platform_driver smo8800_driver = {
181
167
.probe = smo8800_probe ,
182
168
.remove_new = smo8800_remove ,
You can’t perform that action at this time.
0 commit comments