* [PATCH] hwmon: (lm83) Remove unused include directives
@ 2022-05-08 14:46 Karl Mehltretter
2022-05-10 0:29 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Karl Mehltretter @ 2022-05-08 14:46 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: Karl Mehltretter, linux-hwmon, linux-kernel
Some include directives are no longer necessary due to previous driver
changes. Remove them now to further improve driver code clarity.
Mutex usage has ceased since commit 719af4f1a40b ("hwmon: (lm83) Use
regmap").
Ever since commit a0ac840d99fa ("hwmon: (lm83) Convert to use
devm_hwmon_device_register_with_groups") functions sysfs_create_group
and sysfs_remove_group are no longer used by the driver.
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
drivers/hwmon/lm83.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c
index 12370dcef..905f5689f 100644
--- a/drivers/hwmon/lm83.c
+++ b/drivers/hwmon/lm83.c
@@ -24,10 +24,8 @@
#include <linux/init.h>
#include <linux/hwmon.h>
#include <linux/module.h>
-#include <linux/mutex.h>
#include <linux/regmap.h>
#include <linux/slab.h>
-#include <linux/sysfs.h>
/*
* Addresses to scan
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (lm83) Remove unused include directives
2022-05-08 14:46 [PATCH] hwmon: (lm83) Remove unused include directives Karl Mehltretter
@ 2022-05-10 0:29 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2022-05-10 0:29 UTC (permalink / raw)
To: Karl Mehltretter; +Cc: Jean Delvare, linux-hwmon, linux-kernel
On Sun, May 08, 2022 at 04:46:01PM +0200, Karl Mehltretter wrote:
> Some include directives are no longer necessary due to previous driver
> changes. Remove them now to further improve driver code clarity.
>
> Mutex usage has ceased since commit 719af4f1a40b ("hwmon: (lm83) Use
> regmap").
>
> Ever since commit a0ac840d99fa ("hwmon: (lm83) Convert to use
> devm_hwmon_device_register_with_groups") functions sysfs_create_group
> and sysfs_remove_group are no longer used by the driver.
>
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Applied. Thanks!
Guenter
> ---
> drivers/hwmon/lm83.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c
> index 12370dcef..905f5689f 100644
> --- a/drivers/hwmon/lm83.c
> +++ b/drivers/hwmon/lm83.c
> @@ -24,10 +24,8 @@
> #include <linux/init.h>
> #include <linux/hwmon.h>
> #include <linux/module.h>
> -#include <linux/mutex.h>
> #include <linux/regmap.h>
> #include <linux/slab.h>
> -#include <linux/sysfs.h>
>
> /*
> * Addresses to scan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-10 0:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-08 14:46 [PATCH] hwmon: (lm83) Remove unused include directives Karl Mehltretter
2022-05-10 0:29 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.