projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec21ee
)
hwmon: (aquacomputer_d5next) Remove unneeded CONFIG_DEBUG_FS #ifdef
author
Aleksa Savic
<savicaleksa83@gmail.com>
Sat, 16 Dec 2023 14:07:54 +0000
(15:07 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Tue, 2 Jan 2024 16:44:57 +0000
(08:44 -0800)
Remove the #ifdef check for CONFIG_DEBUG_FS and the empty variant
of aqc_debugfs_init(), because the debugfs functions already do nothing
if debugfs isn't enabled.
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Link:
https://lore.kernel.org/r/20231216140754.336775-1-savicaleksa83@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aquacomputer_d5next.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/aquacomputer_d5next.c
b/drivers/hwmon/aquacomputer_d5next.c
index 4fdd2e12427b9dfa2d1c8f62914cb9657efb07ac..2efe97f8d003c815267295e121021ff4b65411e1 100644
(file)
--- a/
drivers/hwmon/aquacomputer_d5next.c
+++ b/
drivers/hwmon/aquacomputer_d5next.c
@@
-1476,8
+1476,6
@@
static int aqc_raw_event(struct hid_device *hdev, struct hid_report *report, u8
return 0;
}
-#ifdef CONFIG_DEBUG_FS
-
static int serial_number_show(struct seq_file *seqf, void *unused)
{
struct aqc_data *priv = seqf->private;
@@
-1527,14
+1525,6
@@
static void aqc_debugfs_init(struct aqc_data *priv)
debugfs_create_file("power_cycles", 0444, priv->debugfs, priv, &power_cycles_fops);
}
-#else
-
-static void aqc_debugfs_init(struct aqc_data *priv)
-{
-}
-
-#endif
-
static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
{
struct aqc_data *priv;