pbat               86 drivers/power/supply/pmu_battery.c 	struct pmu_battery_dev *pbat = to_pmu_battery_dev(psy);
pbat               87 drivers/power/supply/pmu_battery.c 	struct pmu_battery_info *pbi = pbat->pbi;
pbat              163 drivers/power/supply/pmu_battery.c 		struct pmu_battery_dev *pbat = kzalloc(sizeof(*pbat),
pbat              165 drivers/power/supply/pmu_battery.c 		if (!pbat)
pbat              168 drivers/power/supply/pmu_battery.c 		sprintf(pbat->name, "PMU_battery_%d", i);
pbat              169 drivers/power/supply/pmu_battery.c 		pbat->bat_desc.name = pbat->name;
pbat              170 drivers/power/supply/pmu_battery.c 		pbat->bat_desc.properties = pmu_bat_props;
pbat              171 drivers/power/supply/pmu_battery.c 		pbat->bat_desc.num_properties = ARRAY_SIZE(pmu_bat_props);
pbat              172 drivers/power/supply/pmu_battery.c 		pbat->bat_desc.get_property = pmu_bat_get_property;
pbat              173 drivers/power/supply/pmu_battery.c 		pbat->pbi = &pmu_batteries[i];
pbat              174 drivers/power/supply/pmu_battery.c 		psy_cfg.drv_data = pbat;
pbat              176 drivers/power/supply/pmu_battery.c 		pbat->bat = power_supply_register(&bat_pdev->dev,
pbat              177 drivers/power/supply/pmu_battery.c 						  &pbat->bat_desc,
pbat              179 drivers/power/supply/pmu_battery.c 		if (IS_ERR(pbat->bat)) {
pbat              180 drivers/power/supply/pmu_battery.c 			ret = PTR_ERR(pbat->bat);
pbat              181 drivers/power/supply/pmu_battery.c 			kfree(pbat);
pbat              184 drivers/power/supply/pmu_battery.c 		pbats[i] = pbat;