Lines Matching refs:cn3927v
1015 static int __cn3927v_set_power(struct cn3927v_device *cn3927v, bool on) in __cn3927v_set_power() argument
1017 struct i2c_client *client = cn3927v->client; in __cn3927v_set_power()
1022 if (cn3927v->power_on == !!on) in __cn3927v_set_power()
1026 ret = regulator_enable(cn3927v->supply); in __cn3927v_set_power()
1031 cn3927v->power_on = true; in __cn3927v_set_power()
1033 ret = regulator_disable(cn3927v->supply); in __cn3927v_set_power()
1038 cn3927v->power_on = false; in __cn3927v_set_power()
1045 static int cn3927v_check_i2c(struct cn3927v_device *cn3927v, in cn3927v_check_i2c() argument
1062 static int cn3927v_configure_regulator(struct cn3927v_device *cn3927v) in cn3927v_configure_regulator() argument
1064 struct i2c_client *client = cn3927v->client; in cn3927v_configure_regulator()
1067 cn3927v->supply = devm_regulator_get(&client->dev, "avdd"); in cn3927v_configure_regulator()
1068 if (IS_ERR(cn3927v->supply)) { in cn3927v_configure_regulator()
1069 ret = PTR_ERR(cn3927v->supply); in cn3927v_configure_regulator()
1074 cn3927v->power_on = false; in cn3927v_configure_regulator()