Searched refs:vled_reg (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/iio/light/
H A Dcm36651.c137 struct regulator *vled_reg; member in struct:cm36651_data
638 cm36651->vled_reg = devm_regulator_get(&client->dev, "vled"); cm36651_probe()
639 if (IS_ERR(cm36651->vled_reg)) { cm36651_probe()
641 return PTR_ERR(cm36651->vled_reg); cm36651_probe()
644 ret = regulator_enable(cm36651->vled_reg); cm36651_probe()
705 regulator_disable(cm36651->vled_reg); cm36651_probe()
715 regulator_disable(cm36651->vled_reg); cm36651_remove()
H A Dgp2ap020a00f.c247 struct regulator *vled_reg; member in struct:gp2ap020a00f_data
1509 data->vled_reg = devm_regulator_get(&client->dev, "vled"); gp2ap020a00f_probe()
1510 if (IS_ERR(data->vled_reg)) gp2ap020a00f_probe()
1511 return PTR_ERR(data->vled_reg); gp2ap020a00f_probe()
1513 err = regulator_enable(data->vled_reg); gp2ap020a00f_probe()
1600 regulator_disable(data->vled_reg); gp2ap020a00f_probe()
1620 regulator_disable(data->vled_reg); gp2ap020a00f_remove()

Completed in 153 milliseconds