Lines Matching full:vcc
27 struct regulator *vcc; member
66 ret = regulator_enable(led->vcc); in regulator_led_enable()
68 dev_err(led->cdev.dev, "Failed to enable vcc: %d\n", ret); in regulator_led_enable()
82 ret = regulator_disable(led->vcc); in regulator_led_disable()
84 dev_err(led->cdev.dev, "Failed to disable vcc: %d\n", ret); in regulator_led_disable()
106 voltage = led_regulator_get_voltage(led->vcc, value); in regulator_led_brightness_set()
110 ret = regulator_set_voltage(led->vcc, voltage, voltage); in regulator_led_brightness_set()
130 struct regulator *vcc; in regulator_led_probe() local
133 vcc = devm_regulator_get_exclusive(dev, "vled"); in regulator_led_probe()
134 if (IS_ERR(vcc)) { in regulator_led_probe()
135 dev_err(dev, "Cannot get vcc\n"); in regulator_led_probe()
136 return PTR_ERR(vcc); in regulator_led_probe()
145 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe()
159 led->vcc = vcc; in regulator_led_probe()
162 if (regulator_is_enabled(led->vcc)) in regulator_led_probe()