.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * Linux GPIOlib driver for the VIA VX855 integrated southbridge GPIO |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2010 One Laptop per Child |
---|
6 | 7 | * Author: Harald Welte <HaraldWelte@viatech.com> |
---|
7 | 8 | * All rights reserved. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or |
---|
10 | | - * modify it under the terms of the GNU General Public License as |
---|
11 | | - * published by the Free Software Foundation; either version 2 of |
---|
12 | | - * the License, or (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 | | - * |
---|
19 | | - * You should have received a copy of the GNU General Public License |
---|
20 | | - * along with this program; if not, write to the Free Software |
---|
21 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
---|
22 | | - * MA 02111-1307 USA |
---|
23 | | - * |
---|
24 | 9 | */ |
---|
25 | | - |
---|
26 | 10 | #include <linux/kernel.h> |
---|
27 | 11 | #include <linux/module.h> |
---|
28 | | -#include <linux/gpio.h> |
---|
| 12 | +#include <linux/gpio/driver.h> |
---|
29 | 13 | #include <linux/slab.h> |
---|
30 | 14 | #include <linux/device.h> |
---|
31 | 15 | #include <linux/platform_device.h> |
---|
.. | .. |
---|
87 | 71 | return 1 << (i + 13); |
---|
88 | 72 | } |
---|
89 | 73 | |
---|
90 | | -/* Mapping betwee numeric GPIO ID and the actual GPIO hardware numbering: |
---|
| 74 | +/* Mapping between numeric GPIO ID and the actual GPIO hardware numbering: |
---|
91 | 75 | * 0..13 GPI 0..13 |
---|
92 | 76 | * 14..26 GPO 0..12 |
---|
93 | 77 | * 27..41 GPIO 0..14 |
---|