.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ |
---|
3 | 4 | * Andrew F. Davis <afd@ti.com> |
---|
4 | 5 | * |
---|
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 | | - * |
---|
14 | 6 | * Based on the TPS65912 driver |
---|
15 | 7 | */ |
---|
16 | 8 | |
---|
17 | | -#include <linux/gpio.h> |
---|
| 9 | +#include <linux/gpio/driver.h> |
---|
18 | 10 | #include <linux/module.h> |
---|
19 | 11 | #include <linux/platform_device.h> |
---|
20 | 12 | |
---|
.. | .. |
---|
29 | 21 | unsigned offset) |
---|
30 | 22 | { |
---|
31 | 23 | /* This device is output only */ |
---|
32 | | - return 0; |
---|
| 24 | + return GPIO_LINE_DIRECTION_OUT; |
---|
33 | 25 | } |
---|
34 | 26 | |
---|
35 | 27 | static int tps65086_gpio_direction_input(struct gpio_chip *chip, |
---|