Lines Matching refs:is_present
207 bool is_present; member
266 static int sbs_update_presence(struct sbs_info *chip, bool is_present) in sbs_update_presence() argument
273 if (chip->is_present == is_present) in sbs_update_presence()
276 if (!is_present) { in sbs_update_presence()
277 chip->is_present = false; in sbs_update_presence()
305 chip->is_present = true; in sbs_update_presence()
326 if (!chip->is_present && is_present && !chip->charger_broadcasts) in sbs_update_presence()
329 chip->is_present = true; in sbs_update_presence()
1011 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
1012 bool old_present = chip->is_present; in sbs_get_property()
1019 if (old_present != chip->is_present) in sbs_get_property()
1030 } else if (!chip->is_present) { in sbs_get_property()
1241 if (chip->is_present && ret < 0) in sbs_suspend()