pwm: pca9685: use gpio core provided macro GPIO_LINE_DIRECTION_OUT
PATCH 1/1 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 <[email protected]>
--- drivers/pwm/pwm-pca9685.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-pca9685.c +1 -1
@@ -168,7 +168,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,
Signature · 1 line
2.7.4
Quoted 4 lines · Rishi Gupta
GPIO core recently added macro to uniformly specify direction of a GPIO Line, so use it.
Signed-off-by Rishi Gupta <[email protected]>
Acked-by Uwe Kleine-König <[email protected]>
Best regards and thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |