.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * dell-smo8800.c - Dell Latitude ACPI SMO88XX freefall sensor driver |
---|
3 | 4 | * |
---|
4 | 5 | * 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> |
---|
6 | 7 | * |
---|
7 | 8 | * 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. |
---|
18 | 9 | */ |
---|
19 | 10 | |
---|
20 | 11 | #define DRIVER_NAME "smo8800" |
---|
.. | .. |
---|
25 | 16 | #include <linux/interrupt.h> |
---|
26 | 17 | #include <linux/miscdevice.h> |
---|
27 | 18 | #include <linux/uaccess.h> |
---|
| 19 | +#include <linux/fs.h> |
---|
28 | 20 | |
---|
29 | 21 | struct smo8800_device { |
---|
30 | 22 | u32 irq; /* acpi device irq */ |
---|
.. | .. |
---|
207 | 199 | return 0; |
---|
208 | 200 | } |
---|
209 | 201 | |
---|
| 202 | +/* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */ |
---|
210 | 203 | static const struct acpi_device_id smo8800_ids[] = { |
---|
211 | 204 | { "SMO8800", 0 }, |
---|
212 | 205 | { "SMO8801", 0 }, |
---|