14 #include <linux/module.h>
17 #include <linux/bitops.h>
23 #include <linux/slab.h>
48 .supply_name =
"LDOVDD",
50 .ops = &arizona_ldo1_ops,
67 .num_consumer_supplies = 1,
74 struct arizona_ldo1 *ldo1;
79 dev_err(&pdev->
dev,
"Unable to allocate private data\n");
92 ldo1->
supply.supply =
"DCVDD";
93 ldo1->
supply.dev_name = dev_name(arizona->
dev);
100 if (arizona->
pdata.ldo1)
108 dev_err(arizona->
dev,
"Failed to register LDO1 supply: %d\n",
113 platform_set_drvdata(pdev, ldo1);
120 struct arizona_ldo1 *ldo1 = platform_get_drvdata(pdev);
128 .probe = arizona_ldo1_probe,
131 .name =
"arizona-ldo1",