summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-11-28 20:06:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-27 13:58:52 +0100
commit9d207df1282aac3c0e9a2398a7ee0447d60903fd (patch)
tree9d46222e1d1fccecb6b9eecf33dd8eac275a1728
parentda6b2c626ae73c303378ce9eaf6e3eaf16c9925a (diff)
downloadlinux-9d207df1282aac3c0e9a2398a7ee0447d60903fd.tar.gz
linux-9d207df1282aac3c0e9a2398a7ee0447d60903fd.tar.bz2
linux-9d207df1282aac3c0e9a2398a7ee0447d60903fd.zip
hwmon: (tmp513) Don't use "proxy" headers
[ Upstream commit 5d9ad4e0fa7cc27199fdb94beb6ec5f655ba9489 ] The driver uses math.h and not util_macros.h. All the same for the kernel.h, replace it with what the driver is using. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231128180654.395692-2-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>
-rw-r--r--drivers/hwmon/tmp513.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c
index 9a180b1030c9..ca665033fe52 100644
--- a/drivers/hwmon/tmp513.c
+++ b/drivers/hwmon/tmp513.c
@@ -19,15 +19,19 @@
* the Free Software Foundation; version 2 of the License.
*/
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/device.h>
#include <linux/err.h>
#include <linux/hwmon.h>
#include <linux/i2c.h>
#include <linux/init.h>
-#include <linux/kernel.h>
+#include <linux/math.h>
#include <linux/module.h>
+#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/slab.h>
-#include <linux/util_macros.h>
+#include <linux/types.h>
// Common register definition
#define TMP51X_SHUNT_CONFIG 0x00