static void bms_notify(struct bq51051b_wlc_chip *chip, int value) { if (value) pm8921_bms_charging_began(); else pm8921_bms_charging_end(0); }
static void bms_notify(struct work_struct *work) { struct bms_notify *n = container_of(work, struct bms_notify, work); if (n->is_charging) pm8921_bms_charging_began(); else pm8921_bms_charging_end(); }