diff options
author | Rishi Gupta <gupt21@gmail.com> | 2020-03-11 18:52:20 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-03-30 19:03:04 +0300 |
commit | a37507d5bfec9224e425a055683101560514dff8 (patch) | |
tree | a4c4af46bac9c0f274dcb538504a1b236b9e226d /drivers/pwm/pwm-pca9685.c | |
parent | 408a7591d91a8bb935109776e889bbaa42787c09 (diff) | |
download | linux-a37507d5bfec9224e425a055683101560514dff8.tar.xz |
pwm: pca9685: Use gpio core provided macro GPIO_LINE_DIRECTION_OUT
GPIO core recently added macro to uniformly specify direction of a GPIO
line, so use it.
Signed-off-by: Rishi Gupta <gupt21@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-pca9685.c')
-rw-r--r-- | drivers/pwm/pwm-pca9685.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-pca9685.c b/drivers/pwm/pwm-pca9685.c index 9467fb68442d..20bdc59a0cbb 100644 --- a/drivers/pwm/pwm-pca9685.c +++ b/drivers/pwm/pwm-pca9685.c @@ -167,7 +167,7 @@ static int pca9685_pwm_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) { /* Always out */ - return 0; + return GPIO_LINE_DIRECTION_OUT; } static int pca9685_pwm_gpio_direction_input(struct gpio_chip *gpio, |