]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7173: Fix uninitialized symbol is_current_chan
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 2 Jul 2024 18:43:46 +0000 (19:43 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 2 Jul 2024 18:43:46 +0000 (19:43 +0100)
commit529d2e1900642eba6df28307e26e19793e227546
tree0e7c819d01b20bb2afa45ef17627336f4c0442a8
parent3587914bf61df7924933530353d840378cdc4973
iio: adc: ad7173: Fix uninitialized symbol is_current_chan

Move the definition down and make it a boolean that is initialized
to false.

Fixes: 13d12e3ad12d ("iio: adc: ad7173: Add support for AD411x devices")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202406232046.DKfBJq6o-lkp@intel.com/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c