Skip to contentSkip to conversation

hwmon: axi-fan-control: remove duplicate macros

PATCH Applied Alexandru Ardelean 2 participants 2 messages Aug 3, 2020 – Aug 4, 2020

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

PATCH 1/1 hwmon: axi-fan-control: remove duplicate macros

These macros are also present in the "include/linux/fpga/adi-axi-common.h" file which is included in this driver.

This patch removes them from the AXI Fan Control driver. No sense in having them in 2 places.

---
 drivers/hwmon/axi-fan-control.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/hwmon/axi-fan-control.c +0 -4
index 38d9cdb3db1a..e3f6b03e6764 100644
@@ -15,10 +15,6 @@
 #include <linux/of.h>
 #include <linux/platform_device.h>
 
-#define ADI_AXI_PCORE_VER_MAJOR(version)	(((version) >> 16) & 0xff)
-#define ADI_AXI_PCORE_VER_MINOR(version)	(((version) >> 8) & 0xff)
-#define ADI_AXI_PCORE_VER_PATCH(version)	((version) & 0xff)
-
 /* register map */
 #define ADI_REG_RSTN		0x0080
 #define ADI_REG_PWM_WIDTH	0x0084
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Alexandru Ardelean

These macros are also present in the "include/linux/fpga/adi-axi-common.h" file which is included in this driver.

This patch removes them from the AXI Fan Control driver. No sense in having them in 2 places.

Applied.

Thanks,
Guenter

Quoted 19 lines
---
 drivers/hwmon/axi-fan-control.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/hwmon/axi-fan-control.c +0 -4
index 38d9cdb3db1a..e3f6b03e6764 100644
@@ -15,10 +15,6 @@
 #include <linux/of.h>
 #include <linux/platform_device.h>
 
-#define ADI_AXI_PCORE_VER_MAJOR(version)	(((version) >> 16) & 0xff)
-#define ADI_AXI_PCORE_VER_MINOR(version)	(((version) >> 8) & 0xff)
-#define ADI_AXI_PCORE_VER_PATCH(version)	((version) & 0xff)
-
 /* register map */
 #define ADI_REG_RSTN		0x0080
 #define ADI_REG_PWM_WIDTH	0x0084