Lines Matching refs:enable_gpio
29 struct gpio_desc *enable_gpio; member
61 if (pb->enable_gpio) in pwm_backlight_power_on()
62 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on()
75 if (pb->enable_gpio) in pwm_backlight_power_off()
76 gpiod_set_value_cansleep(pb->enable_gpio, 0); in pwm_backlight_power_off()
418 if (pb->enable_gpio && gpiod_get_value_cansleep(pb->enable_gpio) == 0) in pwm_backlight_initial_power_state()
431 if (pb->enable_gpio) in pwm_backlight_initial_power_state()
432 gpiod_direction_output(pb->enable_gpio, active); in pwm_backlight_initial_power_state()
496 pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_backlight_probe()
498 if (IS_ERR(pb->enable_gpio)) { in pwm_backlight_probe()
499 ret = PTR_ERR(pb->enable_gpio); in pwm_backlight_probe()