Searched refs:original_val (Results 1 – 1 of 1) sorted by relevance
773 int ret, original_val; in sbs_set_capacity_mode() local775 original_val = sbs_read_word_data(client, BATTERY_MODE_OFFSET); in sbs_set_capacity_mode()776 if (original_val < 0) in sbs_set_capacity_mode()777 return original_val; in sbs_set_capacity_mode()779 if ((original_val & BATTERY_MODE_CAPACITY_MASK) == mode) in sbs_set_capacity_mode()783 ret = original_val & ~BATTERY_MODE_CAPACITY_MASK; in sbs_set_capacity_mode()785 ret = original_val | BATTERY_MODE_CAPACITY_MASK; in sbs_set_capacity_mode()793 return original_val & BATTERY_MODE_CAPACITY_MASK; in sbs_set_capacity_mode()