Searched refs:ecbat (Results 1 – 1 of 1) sorted by relevance
71 static int yoga_c630_psy_update_bat_info(struct yoga_c630_psy *ecbat) in yoga_c630_psy_update_bat_info() argument73 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_bat_info()76 lockdep_assert_held(&ecbat->lock); in yoga_c630_psy_update_bat_info()81 ecbat->bat_present = !!(val & LENOVO_EC_BAT_PRESENT_IS_PRESENT); in yoga_c630_psy_update_bat_info()82 if (!ecbat->bat_present) in yoga_c630_psy_update_bat_info()88 ecbat->unit_mA = val & LENOVO_EC_BAT_ATTRIBUTES_UNIT_IS_MA; in yoga_c630_psy_update_bat_info()93 ecbat->design_capacity = val * 1000; in yoga_c630_psy_update_bat_info()104 ecbat->design_voltage = val; in yoga_c630_psy_update_bat_info()118 ecbat->full_charge_capacity = val * 1000; in yoga_c630_psy_update_bat_info()120 if (!ecbat->unit_mA) { in yoga_c630_psy_update_bat_info()[all …]