mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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 <shofiqtest@gmail.com> Reviewed-by: Stepan Ionichev <sozdayvek@gmail.com> Acked-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
d0f23d8a90
commit
5d7b3df5c1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user