hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpio/gpio-tps65086.c
....@@ -1,20 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
34 * Andrew F. Davis <afd@ti.com>
45 *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed "as is" WITHOUT ANY WARRANTY of any
10
- * kind, whether expressed or implied; without even the implied warranty
11
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License version 2 for more details.
13
- *
146 * Based on the TPS65912 driver
157 */
168
17
-#include <linux/gpio.h>
9
+#include <linux/gpio/driver.h>
1810 #include <linux/module.h>
1911 #include <linux/platform_device.h>
2012
....@@ -29,7 +21,7 @@
2921 unsigned offset)
3022 {
3123 /* This device is output only */
32
- return 0;
24
+ return GPIO_LINE_DIRECTION_OUT;
3325 }
3426
3527 static int tps65086_gpio_direction_input(struct gpio_chip *chip,