Searched refs:dev_pdata (Results 1 – 4 of 4) sorted by relevance
36 dev_pdata = dev_get_platdata(dev); in gpio_regulator_ofdata_to_platdata()51 gpio = &dev_pdata->gpio; in gpio_regulator_ofdata_to_platdata()77 if (!dev_pdata->gpio.dev) in gpio_regulator_get_value()87 if (enable == dev_pdata->states[0]) in gpio_regulator_get_value()88 return dev_pdata->voltages[0]; in gpio_regulator_get_value()90 return dev_pdata->voltages[1]; in gpio_regulator_get_value()99 if (!dev_pdata->gpio.dev) in gpio_regulator_set_value()102 if (uV == dev_pdata->voltages[0]) in gpio_regulator_set_value()103 enable = dev_pdata->states[0]; in gpio_regulator_set_value()104 else if (uV == dev_pdata->voltages[1]) in gpio_regulator_set_value()[all …]
25 struct fixed_regulator_platdata *dev_pdata; in fixed_regulator_ofdata_to_platdata() local30 dev_pdata = dev_get_platdata(dev); in fixed_regulator_ofdata_to_platdata()42 gpio = &dev_pdata->gpio; in fixed_regulator_ofdata_to_platdata()54 dev_pdata->off_on_delay_us = in fixed_regulator_ofdata_to_platdata()97 if (!dev_pdata->gpio.dev) in fixed_regulator_get_enable()110 dm_gpio_is_valid(&dev_pdata->gpio)); in fixed_regulator_set_enable()112 if (!dm_gpio_is_valid(&dev_pdata->gpio)) { in fixed_regulator_set_enable()125 if (enable && dev_pdata->startup_delay_us) in fixed_regulator_set_enable()126 udelay(dev_pdata->startup_delay_us); in fixed_regulator_set_enable()129 if (!enable && dev_pdata->off_on_delay_us) in fixed_regulator_set_enable()[all …]
86 struct fan53555_platdata *dev_pdata = dev_get_platdata(dev); in fan53555_regulator_ofdata_to_platdata() local103 dev_pdata->sleep_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()104 dev_pdata->vol_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()107 dev_pdata->sleep_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()108 dev_pdata->vol_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()
94 struct mlxreg_core_hotplug_platform_data *dev_pdata = pdata; in mlxreg_hotplug_pdata_export() local97 dev_pdata->regmap = regmap; in mlxreg_hotplug_pdata_export()