Skip to content

Commit 1c7932d

Browse files
SpieringsAEgroeck
authored andcommitted
hwmon: (ntc_thermistor) Fix the ncpXXxh103 sensor table
I could not find a single table that has the values currently present in the table, change it to the actual values that can be found in [1]/[2] and [3] (page 15 column 2) [1]: https://www.murata.com/products/productdetail?partno=NCP15XH103F03RC [2]: https://www.murata.com/products/productdata/8796836626462/NTHCG83.txt?1437969843000 [3]: https://nl.mouser.com/datasheet/2/281/r44e-522712.pdf Fixes: 54ce3a0 ("hwmon: (ntc_thermistor) Add support for ncpXXxh103") Signed-off-by: Maud Spierings <maudspierings@gocontroll.com> Link: https://lore.kernel.org/r/20250227-ntc_thermistor_fixes-v1-3-70fa73200b52@gocontroll.com Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 6b6e2e8 commit 1c7932d

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

drivers/hwmon/ntc_thermistor.c

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -181,40 +181,40 @@ static const struct ntc_compensation ncpXXwf104[] = {
181181
};
182182

183183
static const struct ntc_compensation ncpXXxh103[] = {
184-
{ .temp_c = -40, .ohm = 247565 },
185-
{ .temp_c = -35, .ohm = 181742 },
186-
{ .temp_c = -30, .ohm = 135128 },
187-
{ .temp_c = -25, .ohm = 101678 },
188-
{ .temp_c = -20, .ohm = 77373 },
189-
{ .temp_c = -15, .ohm = 59504 },
190-
{ .temp_c = -10, .ohm = 46222 },
191-
{ .temp_c = -5, .ohm = 36244 },
192-
{ .temp_c = 0, .ohm = 28674 },
193-
{ .temp_c = 5, .ohm = 22878 },
194-
{ .temp_c = 10, .ohm = 18399 },
195-
{ .temp_c = 15, .ohm = 14910 },
196-
{ .temp_c = 20, .ohm = 12169 },
184+
{ .temp_c = -40, .ohm = 195652 },
185+
{ .temp_c = -35, .ohm = 148171 },
186+
{ .temp_c = -30, .ohm = 113347 },
187+
{ .temp_c = -25, .ohm = 87559 },
188+
{ .temp_c = -20, .ohm = 68237 },
189+
{ .temp_c = -15, .ohm = 53650 },
190+
{ .temp_c = -10, .ohm = 42506 },
191+
{ .temp_c = -5, .ohm = 33892 },
192+
{ .temp_c = 0, .ohm = 27219 },
193+
{ .temp_c = 5, .ohm = 22021 },
194+
{ .temp_c = 10, .ohm = 17926 },
195+
{ .temp_c = 15, .ohm = 14674 },
196+
{ .temp_c = 20, .ohm = 12081 },
197197
{ .temp_c = 25, .ohm = 10000 },
198-
{ .temp_c = 30, .ohm = 8271 },
199-
{ .temp_c = 35, .ohm = 6883 },
200-
{ .temp_c = 40, .ohm = 5762 },
201-
{ .temp_c = 45, .ohm = 4851 },
202-
{ .temp_c = 50, .ohm = 4105 },
203-
{ .temp_c = 55, .ohm = 3492 },
204-
{ .temp_c = 60, .ohm = 2985 },
205-
{ .temp_c = 65, .ohm = 2563 },
206-
{ .temp_c = 70, .ohm = 2211 },
207-
{ .temp_c = 75, .ohm = 1915 },
208-
{ .temp_c = 80, .ohm = 1666 },
209-
{ .temp_c = 85, .ohm = 1454 },
210-
{ .temp_c = 90, .ohm = 1275 },
211-
{ .temp_c = 95, .ohm = 1121 },
212-
{ .temp_c = 100, .ohm = 990 },
213-
{ .temp_c = 105, .ohm = 876 },
214-
{ .temp_c = 110, .ohm = 779 },
215-
{ .temp_c = 115, .ohm = 694 },
216-
{ .temp_c = 120, .ohm = 620 },
217-
{ .temp_c = 125, .ohm = 556 },
198+
{ .temp_c = 30, .ohm = 8315 },
199+
{ .temp_c = 35, .ohm = 6948 },
200+
{ .temp_c = 40, .ohm = 5834 },
201+
{ .temp_c = 45, .ohm = 4917 },
202+
{ .temp_c = 50, .ohm = 4161 },
203+
{ .temp_c = 55, .ohm = 3535 },
204+
{ .temp_c = 60, .ohm = 3014 },
205+
{ .temp_c = 65, .ohm = 2586 },
206+
{ .temp_c = 70, .ohm = 2228 },
207+
{ .temp_c = 75, .ohm = 1925 },
208+
{ .temp_c = 80, .ohm = 1669 },
209+
{ .temp_c = 85, .ohm = 1452 },
210+
{ .temp_c = 90, .ohm = 1268 },
211+
{ .temp_c = 95, .ohm = 1110 },
212+
{ .temp_c = 100, .ohm = 974 },
213+
{ .temp_c = 105, .ohm = 858 },
214+
{ .temp_c = 110, .ohm = 758 },
215+
{ .temp_c = 115, .ohm = 672 },
216+
{ .temp_c = 120, .ohm = 596 },
217+
{ .temp_c = 125, .ohm = 531 },
218218
};
219219

220220
/*

0 commit comments

Comments
 (0)