[PATCH -next] hwmon: Remove duplicated include in lm75.c

Yang Li posted 1 patch 2 years, 6 months ago
drivers/hwmon/lm75.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] hwmon: Remove duplicated include in lm75.c
Posted by Yang Li 2 years, 6 months ago
./drivers/hwmon/lm75.c: linux/of.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5900
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/hwmon/lm75.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 72cdc405a3b0..bcfa8193e5e7 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -14,7 +14,6 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/of.h>
-#include <linux/of.h>
 #include <linux/regmap.h>
 #include <linux/util_macros.h>
 #include <linux/regulator/consumer.h>
-- 
2.20.1.7.g153144c
Re: [PATCH -next] hwmon: Remove duplicated include in lm75.c
Posted by Guenter Roeck 2 years, 6 months ago
On 7/17/23 17:28, Yang Li wrote:
> ./drivers/hwmon/lm75.c: linux/of.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5900
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>

Already fixed in hwmon-next.

Guenter

> ---
>   drivers/hwmon/lm75.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index 72cdc405a3b0..bcfa8193e5e7 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -14,7 +14,6 @@
>   #include <linux/hwmon-sysfs.h>
>   #include <linux/err.h>
>   #include <linux/of.h>
> -#include <linux/of.h>
>   #include <linux/regmap.h>
>   #include <linux/util_macros.h>
>   #include <linux/regulator/consumer.h>