Remove unused macros
Subsystems (4)
cover Remove unused macros
This patchset removes the macros since they are not used anywhere throughout the kernel.
Shraddha Barke (2):
Staging: iio: cdc: ad7150: Remove unused macros
Staging: iio: cdc: ad7152: Remove unused macros
drivers/staging/iio/cdc/ad7150.c | 10 ---------- drivers/staging/iio/cdc/ad7152.c | 18 ------------------ 2 files changed, 28 deletions(-)
Signature · 1 line
2.1.4
PATCH 1/2 Staging: iio: cdc: ad7150: Remove unused macros
Remove the macros since they are not used anywhere throughout the kernel.
--- drivers/staging/iio/cdc/ad7150.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/staging/iio/cdc/ad7150.c +0 -10
@@ -36,16 +36,6 @@#define AD7150_CH2_TIMEOUT 13#define AD7150_CH2_SETUP 14#define AD7150_CFG 15 -#define AD7150_CFG_FIX (1 << 7) -#define AD7150_PD_TIMER 16 -#define AD7150_CH1_CAPDAC 17 -#define AD7150_CH2_CAPDAC 18 -#define AD7150_SN3 19 -#define AD7150_SN2 20 -#define AD7150_SN1 21 -#define AD7150_SN0 22 -#define AD7150_ID 23 -/** * struct ad7150_chip_info - instance specific chip data * @client: i2c client for this device
Signature · 1 line
2.1.4
Greg KH
maintainerRe: [Outreachy kernel] [PATCH 1/2] Staging: iio: cdc: ad7150: Remove unused macros
Quoted 7 lines · Shraddha Barke
Remove the macros since they are not used anywhere throughout the kernel.
Signed-off-by Shraddha Barke <[email protected]>--- drivers/staging/iio/cdc/ad7150.c | 10 ---------- 1 file changed, 10 deletions(-)
No, for stuff like this that describes hardware, it's good to leave all of the information in the driver that we can get. It can only help out later, so please leave stuff like this alone.
thanks,
greg k-h
PATCH 2/2 Staging: iio: cdc: ad7152: Remove unused macros
In reply to Shraddha BarkeRemove the macros since they are not used anywhere throughout the kernel.
--- drivers/staging/iio/cdc/ad7152.c | 18 ------------------ 1 file changed, 18 deletions(-)
drivers/staging/iio/cdc/ad7152.c +0 -18
@@ -35,38 +35,20 @@#define AD7152_REG_CH2_GAIN_HIGH 12#define AD7152_REG_CH2_SETUP 14#define AD7152_REG_CFG 15 -#define AD7152_REG_RESEVERD 16 -#define AD7152_REG_CAPDAC_POS 17 -#define AD7152_REG_CAPDAC_NEG 18#define AD7152_REG_CFG2 26 -/* Status Register Bit Designations (AD7152_REG_STATUS) */ -#define AD7152_STATUS_RDY1 (1 << 0) -#define AD7152_STATUS_RDY2 (1 << 1) -#define AD7152_STATUS_C1C2 (1 << 2) -#define AD7152_STATUS_PWDN (1 << 7) -/* Setup Register Bit Designations (AD7152_REG_CHx_SETUP) */ #define AD7152_SETUP_CAPDIFF (1 << 5) -#define AD7152_SETUP_RANGE_2pF (0 << 6) -#define AD7152_SETUP_RANGE_0_5pF (1 << 6) -#define AD7152_SETUP_RANGE_1pF (2 << 6)#define AD7152_SETUP_RANGE_4pF (3 << 6)#define AD7152_SETUP_RANGE (x) ((x) << 6)/* Config Register Bit Designations (AD7152_REG_CFG) */ #define AD7152_CONF_CH2EN (1 << 3)#define AD7152_CONF_CH1EN (1 << 4) -#define AD7152_CONF_MODE_IDLE (0 << 0) -#define AD7152_CONF_MODE_CONT_CONV (1 << 0)#define AD7152_CONF_MODE_SINGLE_CONV (2 << 0)#define AD7152_CONF_MODE_OFFS_CAL (5 << 0)#define AD7152_CONF_MODE_GAIN_CAL (6 << 0) -/* Capdac Register Bit Designations (AD7152_REG_CAPDAC_XXX) */ -#define AD7152_CAPDAC_DACEN (1 << 7) -#define AD7152_CAPDAC_DACP (x) ((x) & 0x1F) -/* CFG2 Register Bit Designations (AD7152_REG_CFG2) */ #define AD7152_CFG2_OSR (x) (((x) & 0x3) << 4)
Signature · 1 line
2.1.4
Greg KH
maintainerRe: [Outreachy kernel] [PATCH 2/2] Staging: iio: cdc: ad7152: Remove unused macros
Quoted 2 lines · Shraddha Barke
Remove the macros since they are not used anywhere throughout the kernel.
Same here, please leave these.
thanks,
greg k-h