Lines Matching refs:power_supply
28 struct regulator *power_supply; member
48 if (pb->power_supply) { in pwm_backlight_power_on()
49 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
74 if (pb->power_supply) in pwm_backlight_power_off()
75 regulator_disable(pb->power_supply); in pwm_backlight_power_off()
124 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status()
422 if (pb->power_supply && !regulator_is_enabled(pb->power_supply)) in pwm_backlight_initial_power_state()
503 pb->power_supply = devm_regulator_get_optional(&pdev->dev, "power"); in pwm_backlight_probe()
504 if (IS_ERR(pb->power_supply)) { in pwm_backlight_probe()
505 ret = PTR_ERR(pb->power_supply); in pwm_backlight_probe()
507 pb->power_supply = NULL; in pwm_backlight_probe()