]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ti-ads1298: Add parentheses around macro parameter
authorMd Shofiqul Islam <shofiqtest@gmail.com>
Sat, 9 May 2026 15:19:57 +0000 (18:19 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:38 +0000 (10:59 +0100)
commit5d7b3df5c1be8f46c2d3eabd1c1fd7b27294cbd3
treeaba5a27761292e392897a7436670c4f8390cf4ef
parentd0f23d8a9091f43329e79bcd29bcac6bf81205e5
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>
drivers/iio/adc/ti-ads1298.c