Searched refs:pwr_stat (Results 1 – 2 of 2) sorted by relevance
131 int pwr_stat; member234 info->pwr_stat = ret; in fuel_gauge_update_registers()256 if (info->pwr_stat & PS_STAT_BAT_CHRG_DIR) { in fuel_gauge_update_registers()289 int pwr_stat = info->pwr_stat; in fuel_gauge_get_status() local294 if (!(pwr_stat & PS_STAT_VBUS_VALID)) in fuel_gauge_get_status()311 if (fg_res < 90 || (pwr_stat & PS_STAT_BAT_CHRG_DIR) || no_current_sense_res) in fuel_gauge_get_status()320 if (pwr_stat & PS_STAT_BAT_CHRG_DIR) in fuel_gauge_get_status()
201 int ret, pwr_stat; in axp288_get_vbus_attach() local203 ret = regmap_read(info->regmap, AXP288_PS_STAT_REG, &pwr_stat); in axp288_get_vbus_attach()209 return !!(pwr_stat & PS_STAT_VBUS_VALID); in axp288_get_vbus_attach()