]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (tmp513) Use SI constants from units.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Nov 2023 18:06:04 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:28:33 +0000 (13:28 +0100)
commitb382e808e342418a875ae583b425d0900b4d003f
tree010d820c6b1a0db735765be7341d7b77d2fcd65c
parente9668ba824c101e75e7b3433443ee8ce88e90ad9
hwmon: (tmp513) Use SI constants from units.h

[ Upstream commit f07f9d2467f4a298d24e186ddee6f69724903067 ]

MILLI and MICRO may be used in the driver to make code more robust
against possible miscalculations.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231128180654.395692-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Stable-dep-of: 74d7e038fd07 ("hwmon: (tmp513) Fix interpretation of values of Shunt Voltage and Limit Registers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/tmp513.c