hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpio/gpio-vx855.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * Linux GPIOlib driver for the VIA VX855 integrated southbridge GPIO
34 *
....@@ -5,27 +6,10 @@
56 * Copyright (C) 2010 One Laptop per Child
67 * Author: Harald Welte <HaraldWelte@viatech.com>
78 * 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
- *
249 */
25
-
2610 #include <linux/kernel.h>
2711 #include <linux/module.h>
28
-#include <linux/gpio.h>
12
+#include <linux/gpio/driver.h>
2913 #include <linux/slab.h>
3014 #include <linux/device.h>
3115 #include <linux/platform_device.h>
....@@ -87,7 +71,7 @@
8771 return 1 << (i + 13);
8872 }
8973
90
-/* Mapping betwee numeric GPIO ID and the actual GPIO hardware numbering:
74
+/* Mapping between numeric GPIO ID and the actual GPIO hardware numbering:
9175 * 0..13 GPI 0..13
9276 * 14..26 GPO 0..12
9377 * 27..41 GPIO 0..14