Commit a37507d5 authored by Rishi Gupta's avatar Rishi Gupta Committed by Thierry Reding

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: default avatarRishi Gupta <gupt21@gmail.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 408a7591
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment