forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/platform/x86/dell-smo8800.c
....@@ -1,20 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * dell-smo8800.c - Dell Latitude ACPI SMO88XX freefall sensor driver
34 *
45 * Copyright (C) 2012 Sonal Santan <sonal.santan@gmail.com>
5
- * Copyright (C) 2014 Pali Rohár <pali.rohar@gmail.com>
6
+ * Copyright (C) 2014 Pali Rohár <pali@kernel.org>
67 *
78 * This is loosely based on lis3lv02d driver.
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
189 */
1910
2011 #define DRIVER_NAME "smo8800"
....@@ -25,6 +16,7 @@
2516 #include <linux/interrupt.h>
2617 #include <linux/miscdevice.h>
2718 #include <linux/uaccess.h>
19
+#include <linux/fs.h>
2820
2921 struct smo8800_device {
3022 u32 irq; /* acpi device irq */
....@@ -207,6 +199,7 @@
207199 return 0;
208200 }
209201
202
+/* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */
210203 static const struct acpi_device_id smo8800_ids[] = {
211204 { "SMO8800", 0 },
212205 { "SMO8801", 0 },