Skip to content

Commit a37507d

Browse files
RishiGupta12thierryreding
authored andcommitted
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]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 408a759 commit a37507d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm-pca9685.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static int pca9685_pwm_gpio_get_direction(struct gpio_chip *chip,
167167
unsigned int offset)
168168
{
169169
/* Always out */
170-
return 0;
170+
return GPIO_LINE_DIRECTION_OUT;
171171
}
172172

173173
static int pca9685_pwm_gpio_direction_input(struct gpio_chip *gpio,

0 commit comments

Comments
 (0)