Lines Matching refs:rpdata
50 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()
93 return rpdata->ena_gpio_state; in aw37503_regulator_is_enabled()
114 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[desc->id]; in aw37503_of_parse_cb() local
117 rpdata->en_gpiod = devm_fwnode_gpiod_get(chip->dev, of_fwnode_handle(np), in aw37503_of_parse_cb()
121 if (IS_ERR(rpdata->en_gpiod)) { in aw37503_of_parse_cb()
122 ret = PTR_ERR(rpdata->en_gpiod); in aw37503_of_parse_cb()