iio: adc: qcom-vadc-common: scale adcmap_100k_104ef_104fb

Scale adcmap_100k_104ef_104fb temp values by the factor of 1000 to
remove extra multiplication in qcom_vadc_scale_therm().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20201204025509.1075506-12-dmitry.baryshkov@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Dmitry Baryshkov 2020-12-04 05:55:05 +03:00 committed by Jonathan Cameron
parent 48d2e2ff85
commit 24a7dc6fdb
1 changed files with 34 additions and 36 deletions

View File

@ -23,40 +23,40 @@ struct vadc_map_pt {
/* Voltage to temperature */ /* Voltage to temperature */
static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = { static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = {
{1758, -40}, {1758, -40000 },
{1742, -35}, {1742, -35000 },
{1719, -30}, {1719, -30000 },
{1691, -25}, {1691, -25000 },
{1654, -20}, {1654, -20000 },
{1608, -15}, {1608, -15000 },
{1551, -10}, {1551, -10000 },
{1483, -5}, {1483, -5000 },
{1404, 0}, {1404, 0 },
{1315, 5}, {1315, 5000 },
{1218, 10}, {1218, 10000 },
{1114, 15}, {1114, 15000 },
{1007, 20}, {1007, 20000 },
{900, 25}, {900, 25000 },
{795, 30}, {795, 30000 },
{696, 35}, {696, 35000 },
{605, 40}, {605, 40000 },
{522, 45}, {522, 45000 },
{448, 50}, {448, 50000 },
{383, 55}, {383, 55000 },
{327, 60}, {327, 60000 },
{278, 65}, {278, 65000 },
{237, 70}, {237, 70000 },
{202, 75}, {202, 75000 },
{172, 80}, {172, 80000 },
{146, 85}, {146, 85000 },
{125, 90}, {125, 90000 },
{107, 95}, {107, 95000 },
{92, 100}, {92, 100000 },
{79, 105}, {79, 105000 },
{68, 110}, {68, 110000 },
{59, 115}, {59, 115000 },
{51, 120}, {51, 120000 },
{44, 125} {44, 125000 }
}; };
/* /*
@ -418,8 +418,6 @@ static int qcom_vadc_scale_therm(const struct vadc_linear_graph *calib_graph,
if (ret) if (ret)
return ret; return ret;
*result_mdec *= 1000;
return 0; return 0;
} }