forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/misc/lis3lv02d/lis3lv02d.h
....@@ -1,25 +1,12 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * lis3lv02d.h - ST LIS3LV02DL accelerometer driver
34 *
45 * Copyright (C) 2007-2008 Yan Burman
56 * Copyright (C) 2008-2009 Eric Piel
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
207 */
218 #include <linux/platform_device.h>
22
-#include <linux/input-polldev.h>
9
+#include <linux/input.h>
2310 #include <linux/regulator/consumer.h>
2411 #include <linux/miscdevice.h>
2512
....@@ -295,7 +282,7 @@
295282 * (1/1000th of earth gravity)
296283 */
297284
298
- struct input_polled_dev *idev; /* input device */
285
+ struct input_dev *idev; /* input device */
299286 struct platform_device *pdev; /* platform device */
300287 struct regulator_bulk_data regulators[2];
301288 atomic_t count; /* interrupt count after last read */