1 #include <linux/slab.h>
2 #include <linux/string.h>
13 static void regulator_fixed_release(
struct device *
dev)
39 if (!data->
cfg.supply_name) {
44 data->
cfg.microvolts = uv;
46 data->
cfg.enabled_at_boot = 1;
49 data->
init_data.constraints.always_on = 1;
50 data->
init_data.consumer_supplies = supplies;
51 data->
init_data.num_consumer_supplies = num_supplies;
53 data->
pdev.name =
"reg-fixed-voltage";
55 data->
pdev.dev.platform_data = &data->
cfg;
56 data->
pdev.dev.release = regulator_fixed_release;