From: Md Shofiqul Islam Date: Sat, 9 May 2026 15:19:57 +0000 (+0300) Subject: iio: adc: ti-ads1298: Add parentheses around macro parameter X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d7b3df5c1be8f46c2d3eabd1c1fd7b27294cbd3;p=thirdparty%2Flinux.git iio: adc: ti-ads1298: Add parentheses around macro parameter ADS1298_REG_CHnSET() is missing parentheses around the parameter 'n'. Add them to follow kernel macro coding style and prevent potential operator precedence issues if the argument is an expression. Signed-off-by: Md Shofiqul Islam Reviewed-by: Stepan Ionichev Acked-by: Mike Looijmans Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/ti-ads1298.c b/drivers/iio/adc/ti-ads1298.c index 25261163d3e25..69911b0cde84e 100644 --- a/drivers/iio/adc/ti-ads1298.c +++ b/drivers/iio/adc/ti-ads1298.c @@ -66,7 +66,7 @@ #define ADS1298_MASK_CONFIG3_VREF_4V BIT(5) #define ADS1298_REG_LOFF 0x04 -#define ADS1298_REG_CHnSET(n) (0x05 + n) +#define ADS1298_REG_CHnSET(n) (0x05 + (n)) #define ADS1298_MASK_CH_PD BIT(7) #define ADS1298_MASK_CH_PGA GENMASK(6, 4) #define ADS1298_MASK_CH_MUX GENMASK(2, 0)