sbs: Hack for LGC0

The battery for the EfikaMX Smartbook reports itself as LGC0 however the battery states that it is Li-Ion.
This commit is contained in:
Steev Klimaszewski
2011-02-15 23:46:03 -06:00
parent ac20d1afab
commit cb3659f02e

View File

@@ -365,6 +365,8 @@ static inline int __chem_to_tech(const char * const chem)
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
if (!strcasecmp(chem, "SOFC")) /* Solid Oxide Fuel Cell */
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
if (!strcasecmp(chem, "LGC0")) /* Lithium Ion */
return POWER_SUPPLY_TECHNOLOGY_LION;
DEBUG("Unknown Device Chemistry: %s", chem);
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;