.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * GPIO interface for IT87xx Super I/O chips |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Based on it87_wdt.c by Oliver Schuster |
---|
8 | 9 | * gpio-it8761e.c by Denis Turischev |
---|
9 | 10 | * 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. |
---|
23 | 11 | */ |
---|
24 | 12 | |
---|
25 | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
59 | 47 | |
---|
60 | 48 | /** |
---|
61 | 49 | * 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 |
---|
69 | 57 | * required because IT87xx chips might only provide Simple I/O |
---|
70 | 58 | * switches on a subset of lines, whereas the others keep the |
---|
71 | 59 | * same status all time. |
---|