Skip to content

Commit

Permalink
hwmon: (axi-fan-control) remove duplicate macros
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
commodo authored and groeck committed Aug 4, 2020
1 parent 2207515 commit dfddc57
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/hwmon/axi-fan-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfddc57

Please sign in to comment.