.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * lis3lv02d.h - ST LIS3LV02DL accelerometer driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2007-2008 Yan Burman |
---|
5 | 6 | * 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 |
---|
20 | 7 | */ |
---|
21 | 8 | #include <linux/platform_device.h> |
---|
22 | | -#include <linux/input-polldev.h> |
---|
| 9 | +#include <linux/input.h> |
---|
23 | 10 | #include <linux/regulator/consumer.h> |
---|
24 | 11 | #include <linux/miscdevice.h> |
---|
25 | 12 | |
---|
.. | .. |
---|
295 | 282 | * (1/1000th of earth gravity) |
---|
296 | 283 | */ |
---|
297 | 284 | |
---|
298 | | - struct input_polled_dev *idev; /* input device */ |
---|
| 285 | + struct input_dev *idev; /* input device */ |
---|
299 | 286 | struct platform_device *pdev; /* platform device */ |
---|
300 | 287 | struct regulator_bulk_data regulators[2]; |
---|
301 | 288 | atomic_t count; /* interrupt count after last read */ |
---|