Searched refs:sense_res_raw (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/power/supply/ |
D | ds2781_battery.c | 220 u8 sense_res_raw, reg_msb; in ds2781_get_current() local 226 ret = ds2781_read8(dev_info, &sense_res_raw, DS2781_RSNSP); in ds2781_get_current() 230 if (sense_res_raw == 0) { in ds2781_get_current() 234 sense_res = 1000 / sense_res_raw; in ds2781_get_current() 265 u8 sense_res_raw; in ds2781_get_accumulated_current() local 271 ret = ds2781_read8(dev_info, &sense_res_raw, DS2781_RSNSP); in ds2781_get_accumulated_current() 275 if (sense_res_raw == 0) { in ds2781_get_accumulated_current() 279 sense_res = 1000 / sense_res_raw; in ds2781_get_accumulated_current()
|
D | ds2780_battery.c | 219 u8 sense_res_raw, reg_msb; in ds2780_get_current() local 225 ret = ds2780_read8(dev_info, &sense_res_raw, DS2780_RSNSP_REG); in ds2780_get_current() 229 if (sense_res_raw == 0) { in ds2780_get_current() 233 sense_res = 1000 / sense_res_raw; in ds2780_get_current() 264 u8 sense_res_raw; in ds2780_get_accumulated_current() local 270 ret = ds2780_read8(dev_info, &sense_res_raw, DS2780_RSNSP_REG); in ds2780_get_accumulated_current() 274 if (sense_res_raw == 0) { in ds2780_get_accumulated_current() 278 sense_res = 1000 / sense_res_raw; in ds2780_get_accumulated_current()
|
D | ds2782_battery.c | 120 u8 sense_res_raw; in ds2782_get_current() local 127 err = ds278x_read_reg(info, DS2782_REG_RSNSP, &sense_res_raw); in ds2782_get_current() 130 if (sense_res_raw == 0) { in ds2782_get_current() 134 sense_res = 1000 / sense_res_raw; in ds2782_get_current()
|