]> 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>
Fri, 27 Dec 2024 12:52:58 +0000 (13:52 +0100)
commit11fa4e178e62811407c521ed74dca3475ac402d8
tree7123e285fe6f9a926e353691af40ba2c50bbc87b
parent7df25973b6594e6ad27b6f2341276980ec008247
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