iio: xilinx-xadc-core: Use local variable in xadc_read_raw
authorGwendal Grignou <gwendal@chromium.org>
Thu, 4 Nov 2021 08:24:12 +0000 (01:24 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:44 +0000 (17:51 +0000)
commitfb3e8bb47806a3e41d200841518726a9e700e283
tree0f14fb53a4ce1b5a4882b49be124fd609279e262
parentaad54091e1b50d725baa31c11358e6d6dcf44cf0
iio: xilinx-xadc-core: Use local variable in xadc_read_raw

Minor cleanup: bit is already defined as chan->scan_type.realbits,
use bit when needed.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20211104082413.3681212-13-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c