hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpio/gpio-it87.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * GPIO interface for IT87xx Super I/O chips
34 *
....@@ -7,19 +8,6 @@
78 * Based on it87_wdt.c by Oliver Schuster
89 * gpio-it8761e.c by Denis Turischev
910 * gpio-stmpe.c by Rabin Vincent
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License 2 as published
13
- * by the Free Software Foundation.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; see the file COPYING. If not, write to
22
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
2311 */
2412
2513 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -59,13 +47,13 @@
5947
6048 /**
6149 * struct it87_gpio - it87-specific GPIO chip
62
- * @chip the underlying gpio_chip structure
63
- * @lock a lock to avoid races between operations
64
- * @io_base base address for gpio ports
65
- * @io_size size of the port rage starting from io_base.
66
- * @output_base Super I/O register address for Output Enable register
67
- * @simple_base Super I/O 'Simple I/O' Enable register
68
- * @simple_size Super IO 'Simple I/O' Enable register size; this is
50
+ * @chip: the underlying gpio_chip structure
51
+ * @lock: a lock to avoid races between operations
52
+ * @io_base: base address for gpio ports
53
+ * @io_size: size of the port rage starting from io_base.
54
+ * @output_base: Super I/O register address for Output Enable register
55
+ * @simple_base: Super I/O 'Simple I/O' Enable register
56
+ * @simple_size: Super IO 'Simple I/O' Enable register size; this is
6957 * required because IT87xx chips might only provide Simple I/O
7058 * switches on a subset of lines, whereas the others keep the
7159 * same status all time.