hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/gpio/gpio-tps65912.c
....@@ -1,23 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * GPIO driver for TI TPS65912x PMICs
34 *
45 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
56 * Andrew F. Davis <afd@ti.com>
67 *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
10
- *
11
- * This program is distributed "as is" WITHOUT ANY WARRANTY of any
12
- * kind, whether expressed or implied; without even the implied warranty
13
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License version 2 for more details.
15
- *
168 * Based on the Arizona GPIO driver and the previous TPS65912 driver by
179 * Margarita Olaya Cabrera <magi@slimlogic.co.uk>
1810 */
1911
20
-#include <linux/gpio.h>
12
+#include <linux/gpio/driver.h>
2113 #include <linux/module.h>
2214 #include <linux/platform_device.h>
2315
....@@ -40,9 +32,9 @@
4032 return ret;
4133
4234 if (val & GPIO_CFG_MASK)
43
- return GPIOF_DIR_OUT;
35
+ return GPIO_LINE_DIRECTION_OUT;
4436 else
45
- return GPIOF_DIR_IN;
37
+ return GPIO_LINE_DIRECTION_IN;
4638 }
4739
4840 static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset)