OSDN Git Service

hwmon: (axi-fan-control) remove duplicate macros
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 3 Aug 2020 05:43:11 +0000 (08:43 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 4 Aug 2020 21:27:20 +0000 (14:27 -0700)
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 <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200803054311.98174-1-alexandru.ardelean@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/axi-fan-control.c

index 38d9cdb..e3f6b03 100644 (file)
 #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