[PATCH] hwmon: lochnagar: Remove the unneeded include <linux/i2c.h>

Christophe JAILLET posted 1 patch 2 years, 7 months ago
drivers/hwmon/lochnagar-hwmon.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] hwmon: lochnagar: Remove the unneeded include <linux/i2c.h>
Posted by Christophe JAILLET 2 years, 7 months ago
This driver does not use i2c, so there is no point in including
<linux/i2c.h>

Remove it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/hwmon/lochnagar-hwmon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/lochnagar-hwmon.c b/drivers/hwmon/lochnagar-hwmon.c
index 9948e2f7208d..6350904a8a8b 100644
--- a/drivers/hwmon/lochnagar-hwmon.c
+++ b/drivers/hwmon/lochnagar-hwmon.c
@@ -11,7 +11,6 @@
 #include <linux/delay.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
-#include <linux/i2c.h>
 #include <linux/math64.h>
 #include <linux/mfd/lochnagar.h>
 #include <linux/mfd/lochnagar2_regs.h>
-- 
2.34.1
Re: [PATCH] hwmon: lochnagar: Remove the unneeded include <linux/i2c.h>
Posted by Guenter Roeck 2 years, 7 months ago
On Sun, Apr 23, 2023 at 10:10:07AM +0200, Christophe JAILLET wrote:
> This driver does not use i2c, so there is no point in including
> <linux/i2c.h>
> 
> Remove it.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Applied.

Thanks,
Guenter