summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-pca9685.c
diff options
context:
space:
mode:
authorRishi Gupta <gupt21@gmail.com>2020-03-11 16:52:20 +0100
committerThierry Reding <thierry.reding@gmail.com>2020-03-30 18:03:04 +0200
commita37507d5bfec9224e425a055683101560514dff8 (patch)
treea4c4af46bac9c0f274dcb538504a1b236b9e226d /drivers/pwm/pwm-pca9685.c
parentpwm: pca9685: Replace CONFIG_PM with __maybe_unused (diff)
downloadlinux-a37507d5bfec9224e425a055683101560514dff8.tar.xz
linux-a37507d5bfec9224e425a055683101560514dff8.zip
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.c2
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,