diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-08-03 07:43:11 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-08-04 23:27:20 +0200 |
commit | dfddc57c9971b213214cada1dcf26ef27f419b5c (patch) | |
tree | f680fb8e4f342dafd7fd9fddca6b40c2ab4dc189 /drivers/hwmon/axi-fan-control.c | |
parent | hwmon: (i5k_amb, vt8231) Drop uses of pci_read_config_*() return value (diff) | |
download | linux-dfddc57c9971b213214cada1dcf26ef27f419b5c.tar.xz linux-dfddc57c9971b213214cada1dcf26ef27f419b5c.zip |
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 <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>
Diffstat (limited to '')
-rw-r--r-- | drivers/hwmon/axi-fan-control.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c index 38d9cdb3db1a..e3f6b03e6764 100644 --- a/drivers/hwmon/axi-fan-control.c +++ b/drivers/hwmon/axi-fan-control.c @@ -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 |