Home
last modified time | relevance | path

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

/drivers/regulator/
Dtps65132-regulator.c68 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_enable() local
71 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_enable()
72 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in tps65132_regulator_enable()
73 rpdata->ena_gpio_state = 1; in tps65132_regulator_enable()
94 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable() local
96 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_disable()
97 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in tps65132_regulator_disable()
98 rpdata->ena_gpio_state = 0; in tps65132_regulator_disable()
101 if (!IS_ERR(rpdata->act_dis_gpiod)) { in tps65132_regulator_disable()
102 gpiod_set_value_cansleep(rpdata->act_dis_gpiod, 1); in tps65132_regulator_disable()
[all …]
Dmax77620-regulator.c169 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_regulator_set_fps_slots() local
173 int pu = rpdata->active_fps_pu_slot; in max77620_regulator_set_fps_slots()
174 int pd = rpdata->active_fps_pd_slot; in max77620_regulator_set_fps_slots()
181 pu = rpdata->suspend_fps_pu_slot; in max77620_regulator_set_fps_slots()
182 pd = rpdata->suspend_fps_pd_slot; in max77620_regulator_set_fps_slots()
356 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_config_power_ok() local
364 if (rpdata->power_ok >= 0) { in max77620_config_power_ok()
370 val = rpdata->power_ok ? mask : 0; in max77620_config_power_ok()
391 struct max77620_regulator_pdata *rpdata = &pmic->reg_pdata[id]; in max77620_init_pmic() local
404 if (rpdata->active_fps_src == MAX77620_FPS_SRC_DEF) { in max77620_init_pmic()
[all …]
Dtps65090-regulator.c377 struct tps65090_regulator_plat_data *rpdata; in tps65090_parse_dt_reg_data() local
379 rpdata = &reg_pdata[idx]; in tps65090_parse_dt_reg_data()
384 rpdata->reg_init_data = ri_data; in tps65090_parse_dt_reg_data()
385 rpdata->enable_ext_control = of_property_read_bool( in tps65090_parse_dt_reg_data()
388 if (rpdata->enable_ext_control) in tps65090_parse_dt_reg_data()
389 rpdata->gpio = of_get_named_gpio(np, in tps65090_parse_dt_reg_data()
394 &rpdata->overcurrent_wait) == 0) in tps65090_parse_dt_reg_data()
395 rpdata->overcurrent_wait_valid = true; in tps65090_parse_dt_reg_data()
397 tps65090_pdata->reg_pdata[idx] = rpdata; in tps65090_parse_dt_reg_data()