2022-09-01 03:06:17

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] hwmon: (emc2305) Remove unused including <linux/version.h>

./drivers/hwmon/emc2305.c: 14 linux/version.h not needed.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2024
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
drivers/hwmon/emc2305.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/emc2305.c b/drivers/hwmon/emc2305.c
index df4c5816f661..e5e96a895549 100644
--- a/drivers/hwmon/emc2305.c
+++ b/drivers/hwmon/emc2305.c
@@ -11,7 +11,6 @@
#include <linux/module.h>
#include <linux/platform_data/emc2305.h>
#include <linux/thermal.h>
-#include <linux/version.h>

static const unsigned short
emc2305_normal_i2c[] = { 0x27, 0x2c, 0x2d, 0x2e, 0x2f, 0x4c, 0x4d, I2C_CLIENT_END };
--
2.20.1.7.g153144c


2022-09-04 16:54:14

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] hwmon: (emc2305) Remove unused including <linux/version.h>

On Thu, Sep 01, 2022 at 10:23:32AM +0800, Jiapeng Chong wrote:
> ./drivers/hwmon/emc2305.c: 14 linux/version.h not needed.
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2024
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Jiapeng Chong <[email protected]>

Applied.

Thanks,
Guenter

> ---
> drivers/hwmon/emc2305.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/hwmon/emc2305.c b/drivers/hwmon/emc2305.c
> index df4c5816f661..e5e96a895549 100644
> --- a/drivers/hwmon/emc2305.c
> +++ b/drivers/hwmon/emc2305.c
> @@ -11,7 +11,6 @@
> #include <linux/module.h>
> #include <linux/platform_data/emc2305.h>
> #include <linux/thermal.h>
> -#include <linux/version.h>
>
> static const unsigned short
> emc2305_normal_i2c[] = { 0x27, 0x2c, 0x2d, 0x2e, 0x2f, 0x4c, 0x4d, I2C_CLIENT_END };