Home
last modified time | relevance | path

Searched refs:rpdata (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/regulator/
H A Dtps65132-regulator.c65 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_enable() local
68 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_enable()
69 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in tps65132_regulator_enable()
70 rpdata->ena_gpio_state = 1; in tps65132_regulator_enable()
91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable() local
93 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_disable()
94 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in tps65132_regulator_disable()
95 rpdata->ena_gpio_state = 0; in tps65132_regulator_disable()
98 if (!IS_ERR(rpdata->act_dis_gpiod)) { in tps65132_regulator_disable()
99 gpiod_set_value_cansleep(rpdata->act_dis_gpiod, 1); in tps65132_regulator_disable()
[all …]
H A Daw37503-regulator.c50 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_enable() local
53 if (!IS_ERR(rpdata->en_gpiod)) { in aw37503_regulator_enable()
54 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in aw37503_regulator_enable()
55 rpdata->ena_gpio_state = 1; in aw37503_regulator_enable()
76 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_disable() local
78 if (!IS_ERR(rpdata->en_gpiod)) { in aw37503_regulator_disable()
79 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in aw37503_regulator_disable()
80 rpdata->ena_gpio_state = 0; in aw37503_regulator_disable()
90 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_is_enabled() local
92 if (!IS_ERR(rpdata->en_gpiod)) in aw37503_regulator_is_enabled()
[all …]
H A Dmax77620-regulator.c166 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_regulator_set_fps_slots() local
170 int pu = rpdata->active_fps_pu_slot; in max77620_regulator_set_fps_slots()
171 int pd = rpdata->active_fps_pd_slot; in max77620_regulator_set_fps_slots()
178 pu = rpdata->suspend_fps_pu_slot; in max77620_regulator_set_fps_slots()
179 pd = rpdata->suspend_fps_pd_slot; in max77620_regulator_set_fps_slots()
353 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_config_power_ok() local
361 if (rpdata->power_ok >= 0) { in max77620_config_power_ok()
367 val = rpdata->power_ok ? mask : 0; in max77620_config_power_ok()
388 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_init_pmic() local
401 if (rpdata->active_fps_src == MAX77620_FPS_SRC_DEF) { in max77620_init_pmic()
[all …]
H A Dtps65090-regulator.c348 struct tps65090_regulator_plat_data *rpdata; in tps65090_parse_dt_reg_data() local
351 rpdata = &reg_pdata[idx]; in tps65090_parse_dt_reg_data()
360 rpdata->reg_init_data = ri_data; in tps65090_parse_dt_reg_data()
361 rpdata->enable_ext_control = of_property_read_bool(np, in tps65090_parse_dt_reg_data()
363 if (rpdata->enable_ext_control) { in tps65090_parse_dt_reg_data()
373 rpdata->gpiod = devm_fwnode_gpiod_get( in tps65090_parse_dt_reg_data()
379 if (PTR_ERR(rpdata->gpiod) == -ENOENT) { in tps65090_parse_dt_reg_data()
382 rpdata->gpiod = NULL; in tps65090_parse_dt_reg_data()
383 } else if (IS_ERR(rpdata->gpiod)) in tps65090_parse_dt_reg_data()
384 return ERR_CAST(rpdata->gpiod); in tps65090_parse_dt_reg_data()
[all …]