Lines Matching refs:is_present
194 bool is_present; member
232 static int sbs_update_presence(struct sbs_info *chip, bool is_present) in sbs_update_presence() argument
239 if (chip->is_present == is_present) in sbs_update_presence()
242 if (!is_present) { in sbs_update_presence()
243 chip->is_present = false; in sbs_update_presence()
270 chip->is_present = true; in sbs_update_presence()
291 if (!chip->is_present && is_present && !chip->charger_broadcasts) in sbs_update_presence()
294 chip->is_present = true; in sbs_update_presence()
968 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
969 bool old_present = chip->is_present; in sbs_get_property()
976 if (old_present != chip->is_present) in sbs_get_property()
987 } else if (!chip->is_present) { in sbs_get_property()
1213 if (chip->is_present && ret < 0) in sbs_suspend()