aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorEliav Farber <[email protected]>2022-09-08 15:24:45 +0000
committerGuenter Roeck <[email protected]>2022-09-19 06:18:44 -0700
commit3b12ca798e022192fb451e9e5ef1bb147f21c413 (patch)
treecd9e33fc646ffc7e5aaf73686d37dfd32b9a6953 /net/lapb/lapb_out.c
parent34339c858ca1ed955cfe6f78a656882e66310920 (diff)
hwmon: (mr75203) add support for series 6 temperature equation
The current equation used in code is aligned to series 5: T = G + H * (n / cal5 - 0.5) + J * F Where: G = 60, H = 200, cal5 = 4094, J = -0.1, F = frequency clock in MHz Series 6 has a slightly different equation: T = G + H * (n / cal5 - 0.5) and a different set of coefficients: G = 57.4, H = 249.4, cal5 = 4096 This change supports equation and coefficients for both series. (for series 6, J is set to 0). The series is determined according to “moortec,ts-series” property in the device tree. If absent, series 5 is assumed to be the default. Signed-off-by: Eliav Farber <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions