Skip to contentSkip to conversation

hwmon: (lm83) Remove unused include directives

PATCH Applied Karl Mehltretter 2 participants 2 messages May 8, 2022 – May 10, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (lm83) Remove unused include directives

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.

---
 drivers/hwmon/lm83.c | 2 --
 1 file changed, 2 deletions(-)
drivers/hwmon/lm83.c +0 -2
index 12370dcef..905f5689f 100644
@@ -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
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw
Quoted 11 lines · Karl Mehltretter

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.

Applied. Thanks!

Guenter

Quoted 19 lines
---
 drivers/hwmon/lm83.c | 2 --
 1 file changed, 2 deletions(-)
drivers/hwmon/lm83.c +0 -2
index 12370dcef..905f5689f 100644
@@ -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