Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib: math: polynomial: remove link to non-exist file and fix spelling

The Baikal SoC and platform support was dropped from the kernel, remove
the reference to non-exist file. While at it, fix spelling.

Link: https://lkml.kernel.org/r/20260302092831.2267785-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Andy Shevchenko and committed by
Andrew Morton
118d86a3 512e19a8

+8 -12
+8 -12
lib/math/polynomial.c
··· 16 16 #include <linux/polynomial.h> 17 17 18 18 /* 19 - * Originally this was part of drivers/hwmon/bt1-pvt.c. 20 - * There the following conversion is used and should serve as an example here: 19 + * The following conversion is an example: 21 20 * 22 21 * The original translation formulae of the temperature (in degrees of Celsius) 23 22 * to PVT data and vice-versa are following: 24 23 * 25 - * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) + 26 - * 1.7204e2 27 - * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) + 28 - * 3.1020e-1*(N^1) - 4.838e1 24 + * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) + 1.7204e2 25 + * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) + 3.1020e-1*(N^1) - 4.838e1 29 26 * 30 27 * where T = [-48.380, 147.438]C and N = [0, 1023]. 31 28 * ··· 33 36 * formulae to accept millidegrees of Celsius. Here what they look like after 34 37 * the alterations: 35 38 * 36 - * N = (18322e-20*(T^4) + 2343e-13*(T^3) + 87018e-9*(T^2) + 39269e-3*T + 37 - * 17204e2) / 1e4 38 - * T = -16743e-12*(D^4) + 81542e-9*(D^3) - 182010e-6*(D^2) + 310200e-3*D - 39 - * 48380 39 + * N = (18322e-20*(T^4) + 2343e-13*(T^3) + 87018e-9*(T^2) + 39269e-3*T + 17204e2) / 1e4 40 + * T = -16743e-12*(D^4) + 81542e-9*(D^3) - 182010e-6*(D^2) + 310200e-3*D - 48380 41 + * 40 42 * where T = [-48380, 147438] mC and N = [0, 1023]. 41 43 * 42 44 * static const struct polynomial poly_temp_to_N = { ··· 65 69 * polynomial_calc - calculate a polynomial using integer arithmetic 66 70 * 67 71 * @poly: pointer to the descriptor of the polynomial 68 - * @data: input value of the polynimal 72 + * @data: input value of the polynomial 69 73 * 70 74 * Calculate the result of a polynomial using only integer arithmetic. For 71 75 * this to work without too much loss of precision the coefficients has to 72 76 * be altered. This is called factor redistribution. 73 77 * 74 - * Returns the result of the polynomial calculation. 78 + * Return: the result of the polynomial calculation. 75 79 */ 76 80 long polynomial_calc(const struct polynomial *poly, long data) 77 81 {