Searched refs:pbat (Results 1 – 1 of 1) sorted by relevance
87 struct pmu_battery_info *pbi = pbat->pbi; in pmu_bat_get_property()163 struct pmu_battery_dev *pbat = kzalloc(sizeof(*pbat), in pmu_bat_init() local165 if (!pbat) in pmu_bat_init()169 pbat->bat_desc.name = pbat->name; in pmu_bat_init()173 pbat->pbi = &pmu_batteries[i]; in pmu_bat_init()174 psy_cfg.drv_data = pbat; in pmu_bat_init()177 &pbat->bat_desc, in pmu_bat_init()179 if (IS_ERR(pbat->bat)) { in pmu_bat_init()180 ret = PTR_ERR(pbat->bat); in pmu_bat_init()181 kfree(pbat); in pmu_bat_init()[all …]
Completed in 3 milliseconds