Searched refs:battery_id (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/power/supply/ |
H A D | bq27xxx_battery_i2c.c | 16 static DEFINE_IDR(battery_id); 149 num = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL); in bq27xxx_battery_i2c_probe() 202 idr_remove(&battery_id, num); in bq27xxx_battery_i2c_probe() 218 idr_remove(&battery_id, di->id); in bq27xxx_battery_i2c_remove()
|
H A D | ds2782_battery.c | 66 static DEFINE_IDR(battery_id); 326 idr_remove(&battery_id, id); in ds278x_battery_remove() 391 ret = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL); in ds278x_battery_probe() 443 idr_remove(&battery_id, num); in ds278x_battery_probe()
|
H A D | qcom_battmgr.c | 93 __le32 battery_id; member 108 __le32 battery_id; member 113 __le32 battery_id; member 120 __le32 battery_id; member 181 __le32 battery_id; member 357 .battery_id = cpu_to_le32(0), in qcom_battmgr_update_status() 369 .battery_id = cpu_to_le32(0), in qcom_battmgr_update_info() 381 .battery_id = cpu_to_le32(0), in qcom_battmgr_update_charge_time() 394 .battery_id = cpu_to_le32(0), in qcom_battmgr_update_discharge_time()
|
H A D | cpcap-battery.c | 410 u8 battery_id = 0; in cpcap_battery_detect_battery_type() local 418 } else if (nvmem_device_read(nvmem, 2, 1, &battery_id) < 0) { in cpcap_battery_detect_battery_type() 419 battery_id = 0; in cpcap_battery_detect_battery_type() 424 switch (battery_id) { in cpcap_battery_detect_battery_type()
|