Searched refs:battery_id (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/power/supply/ |
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() 215 idr_remove(&battery_id, di->id); in bq27xxx_battery_i2c_remove()
|
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()
|
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()
|