The bq27xx driver incorrectly uses the 'val' variable in a switch() statement that should operate on 'chem_id'. This leads to incorrect behavior for fuel gauges such as the BQ27427, where the chemical ID determines how properties are interpreted. This commit replaces 'switch(val)' with 'switch(chem_id)' to ensure proper handling of fuel gauge behavior across supported devices. Signed-off-by: Oleksii Shcherbyna <oleksii.shcherbyna@droid-technologies.com> |
||
|---|---|---|
| .. | ||
| bq274xx | ||
| fdc2x1x | ||
| ina23x | ||
| ina219 | ||
| ina226 | ||
| ina3221 | ||
| lm95234 | ||
| opt3001 | ||
| ti_hdc | ||
| ti_hdc20xx | ||
| tmag5170 | ||
| tmag5273 | ||
| tmp11x | ||
| tmp007 | ||
| tmp108 | ||
| tmp112 | ||
| tmp114 | ||
| tmp435 | ||
| tmp1075 | ||
| CMakeLists.txt | ||
| Kconfig | ||