Searched refs:ss_reg (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dbq24190_charger.c167 u8 ss_reg; member in struct:bq24190_dev_info
936 u8 ss_reg, chrg_fault; bq24190_battery_get_status() local
956 ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg); bq24190_battery_get_status()
967 if (!(ss_reg & BQ24190_REG_SS_PG_STAT_MASK) || chrg_fault) { bq24190_battery_get_status()
970 ss_reg &= BQ24190_REG_SS_CHRG_STAT_MASK; bq24190_battery_get_status()
971 ss_reg >>= BQ24190_REG_SS_CHRG_STAT_SHIFT; bq24190_battery_get_status()
973 switch (ss_reg) { bq24190_battery_get_status()
1201 u8 ss_reg = 0, f_reg = 0; bq24190_irq_handler_thread() local
1206 ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg); bq24190_irq_handler_thread()
1212 if (ss_reg != bdi->ss_reg) { bq24190_irq_handler_thread()
1217 if ((bdi->ss_reg & BQ24190_REG_SS_PG_STAT_MASK) && bq24190_irq_handler_thread()
1218 !(ss_reg & BQ24190_REG_SS_PG_STAT_MASK)) { bq24190_irq_handler_thread()
1228 bdi->ss_reg = ss_reg; bq24190_irq_handler_thread()
1270 dev_dbg(bdi->dev, "ss_reg: 0x%02x, f_reg: 0x%02x\n", ss_reg, f_reg); bq24190_irq_handler_thread()

Completed in 74 milliseconds