Searched refs:vbatt (Results 1 – 5 of 5) sorted by relevance
/drivers/power/supply/ |
D | 88pm860x_charger.c | 270 static void stop_charge(struct pm860x_charger_info *info, int vbatt) in stop_charge() argument 274 if (vbatt > CHARGE_THRESHOLD && info->online) in stop_charge() 291 int vbatt; in set_charging_fsm() local 302 vbatt = data.intval / 1000; in set_charging_fsm() 319 dev_dbg(info->dev, "set_charging_fsm:vbatt:%d(mV)\n", vbatt); in set_charging_fsm() 324 if (vbatt < PRECHARGE_THRESHOLD) { in set_charging_fsm() 327 } else if (vbatt > DISCHARGE_THRESHOLD) { in set_charging_fsm() 329 stop_charge(info, vbatt); in set_charging_fsm() 330 } else if (vbatt < DISCHARGE_THRESHOLD) { in set_charging_fsm() 335 if (vbatt < POWEROFF_THRESHOLD) { in set_charging_fsm() [all …]
|
D | lp8788-charger.c | 255 int vbatt; in lp8788_get_battery_capacity() local 276 ret = lp8788_get_vbatt_adc(pchg, &vbatt); in lp8788_get_battery_capacity() 280 val->intval = (vbatt * LP8788_MAX_BATT_CAPACITY) / max_vbatt; in lp8788_get_battery_capacity()
|
D | max17042_battery.c | 176 int temp, vavg, vbatt, ret; in max17042_get_battery_health() local 193 vbatt = val * 625 / 8; in max17042_get_battery_health() 195 vbatt /= 1000; in max17042_get_battery_health() 202 if (vbatt > chip->pdata->vmax + MAX17042_VMAX_TOLERANCE) { in max17042_get_battery_health()
|
/drivers/mfd/ |
D | ucb1x00-assabet.c | 33 UCB1X00_ATTR(vbatt, UCB_ADC_INP_AD1);
|
/drivers/input/touchscreen/ |
D | ads7846.c | 521 SHOW(in1_input, vbatt, vbatt_adjust) in SHOW()
|