Lines Matching full:vcc
26 struct regulator *vcc; member
65 ret = regulator_enable(led->vcc); in regulator_led_enable()
67 dev_err(led->cdev.dev, "Failed to enable vcc: %d\n", ret); in regulator_led_enable()
81 ret = regulator_disable(led->vcc); in regulator_led_disable()
83 dev_err(led->cdev.dev, "Failed to disable vcc: %d\n", ret); in regulator_led_disable()
105 voltage = led_regulator_get_voltage(led->vcc, value); in regulator_led_brightness_set()
109 ret = regulator_set_voltage(led->vcc, voltage, voltage); in regulator_led_brightness_set()
127 struct regulator *vcc; in regulator_led_probe() local
135 vcc = devm_regulator_get_exclusive(&pdev->dev, "vled"); in regulator_led_probe()
136 if (IS_ERR(vcc)) { in regulator_led_probe()
137 dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); in regulator_led_probe()
138 return PTR_ERR(vcc); in regulator_led_probe()
145 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe()
155 led->vcc = vcc; in regulator_led_probe()
158 if (regulator_is_enabled(led->vcc)) in regulator_led_probe()