Searched refs:chemistry (Results 1 – 3 of 3) sorted by relevance
/drivers/power/supply/ |
D | sbs-battery.c | 842 const char *chemistry; in sbs_get_chemistry() local 849 chemistry = sbs_get_constant_string(chip, POWER_SUPPLY_PROP_TECHNOLOGY); in sbs_get_chemistry() 851 if (IS_ERR(chemistry)) in sbs_get_chemistry() 852 return PTR_ERR(chemistry); in sbs_get_chemistry() 854 if (!strncasecmp(chemistry, "LION", 4)) in sbs_get_chemistry() 856 else if (!strncasecmp(chemistry, "LiP", 3)) in sbs_get_chemistry() 858 else if (!strncasecmp(chemistry, "NiCd", 4)) in sbs_get_chemistry() 860 else if (!strncasecmp(chemistry, "NiMH", 4)) in sbs_get_chemistry() 866 dev_warn(&chip->client->dev, "Unknown chemistry: %s\n", chemistry); in sbs_get_chemistry()
|
D | ipaq_micro_battery.c | 43 u8 chemistry; member 76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work() 136 switch (mb->chemistry) { in micro_batt_get_property()
|
D | qcom_battmgr.c | 976 static unsigned int qcom_battmgr_sc8280xp_parse_technology(const char *chemistry) in qcom_battmgr_sc8280xp_parse_technology() argument 978 if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN)) in qcom_battmgr_sc8280xp_parse_technology() 981 pr_err("Unknown battery technology '%s'\n", chemistry); in qcom_battmgr_sc8280xp_parse_technology()
|