Home
last modified time | relevance | path

Searched refs:BQ27XXX_RS (Results 1 – 1 of 1) sorted by relevance

/drivers/power/supply/
Dbq27xxx_battery.c75 #define BQ27XXX_RS (20) /* Resistor sense mOhm */ macro
513 charge *= BQ27XXX_CURRENT_CONSTANT / BQ27XXX_RS; in bq27xxx_battery_read_charge()
565 dcap = (dcap << 8) * BQ27XXX_CURRENT_CONSTANT / BQ27XXX_RS; in bq27xxx_battery_read_dcap()
587 ae *= BQ27XXX_POWER_CONSTANT / BQ27XXX_RS; in bq27xxx_battery_read_energy()
666 return (tval * BQ27XXX_POWER_CONSTANT) / BQ27XXX_RS; in bq27xxx_battery_read_pwr_avg()
822 val->intval = curr * BQ27XXX_CURRENT_CONSTANT / BQ27XXX_RS; in bq27xxx_battery_current()