Skip to content

Commit

Permalink
hwmon: (lm83) Remove unused include directives
Browse files Browse the repository at this point in the history
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 719af4f ("hwmon: (lm83) Use
regmap").

Ever since commit a0ac840 ("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>
Link: https://lore.kernel.org/r/20220508144601.22796-1-kmehltretter@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Karl Mehltretter authored and Guenter Roeck committed May 22, 2022
1 parent 28bf22e commit 512a4da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/hwmon/lm83.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 512a4da

Please sign in to comment.