hwmon: (mr75203) add debugfs to read and write temperature coefficients
authorEliav Farber <farbere@amazon.com>
Thu, 8 Sep 2022 15:24:48 +0000 (15:24 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:21:53 +0000 (06:21 -0700)
commita4dd0b80b461a4cf2238013a43ff1bd6077c8056
tree51bab9b90492bc6baeefa9e26e376f2f2ec7b603
parent27937d6f8eda4ec8179384764fc5a658d4a6060c
hwmon: (mr75203) add debugfs to read and write temperature coefficients

This change adds debugfs to read and write temperature sensor coefficients
- g, h, j and cal5.

The coefficients can vary between product and product, so it can be very
useful to be able to modify them on the fly during the calibration
process.

e.g.:

cat /sys/kernel/debug/940f23d0000.pvt/ts_coeff_cal5
4096

echo 83000 > sys/kernel/debug/940f23d0000.pvt/ts_coeff_g

Signed-off-by: Eliav Farber <farbere@amazon.com>
Link: https://lore.kernel.org/r/20220908152449.35457-21-farbere@amazon.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mr75203.c