Skip to content

Commit dfddc57

Browse files
commodogroeck
authored andcommitted
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. Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 2207515 commit dfddc57

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/hwmon/axi-fan-control.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
#include <linux/of.h>
1616
#include <linux/platform_device.h>
1717

18-
#define ADI_AXI_PCORE_VER_MAJOR(version) (((version) >> 16) & 0xff)
19-
#define ADI_AXI_PCORE_VER_MINOR(version) (((version) >> 8) & 0xff)
20-
#define ADI_AXI_PCORE_VER_PATCH(version) ((version) & 0xff)
21-
2218
/* register map */
2319
#define ADI_REG_RSTN 0x0080
2420
#define ADI_REG_PWM_WIDTH 0x0084

0 commit comments

Comments
 (0)