]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: temperature: ltc2983: Fix macro parenthesization and rename
authorLiviu Stan <liviu.stan@analog.com>
Mon, 25 May 2026 16:39:30 +0000 (19:39 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:50 +0000 (11:01 +0100)
commit53f4fda3c0efa77bb239dc5e357ae80644fcb400
tree98e534929c0963cbbad097081489086bfd0b4a5b
parent5cb9fdb446bfc3ae0524496f53fb68e67051701b
iio: temperature: ltc2983: Fix macro parenthesization and rename

Wrap the 'chan' parameter in LTC2983_CHAN_START_ADDR() and
LTC2983_CHAN_RES_ADDR() with parentheses to prevent potential
macro argument expansion issues. Also rename LTC2983_CHAN_START_ADDR
to LTC2983_CHAN_ASSIGN_ADDR and LTC2983_CHAN_RES_ADDR to
LTC2983_RESULT_ADDR, to better reflect the datasheet names and avoid
them being confused as related.

Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Liviu Stan <liviu.stan@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/ltc2983.c