Skip to contentSkip to conversation

hwmon: (qnap-mcu) Remove (explicitly) unused header

PATCH Applied Andy Shevchenko 2 participants 2 messages Mar 31, 2025

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

PATCH 1/1 hwmon: (qnap-mcu) Remove (explicitly) unused header

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

---
 drivers/hwmon/qnap-mcu-hwmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/qnap-mcu-hwmon.c +0 -1
index 29057514739c..e86e64c4d391 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2024 Heiko Stuebner <[email protected]>
  */
 
-#include <linux/fwnode.h>
 #include <linux/hwmon.h>
 #include <linux/mfd/qnap-mcu.h>
 #include <linux/module.h>
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw
Quoted 8 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

Applied.

Thanks,
Guenter

Quoted 16 lines
---
 drivers/hwmon/qnap-mcu-hwmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/qnap-mcu-hwmon.c +0 -1
index 29057514739c..e86e64c4d391 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2024 Heiko Stuebner <[email protected]>
  */
 
-#include <linux/fwnode.h>
 #include <linux/hwmon.h>
 #include <linux/mfd/qnap-mcu.h>
 #include <linux/module.h>