iio: ti-ads1015: Remove shift variable ads1015_read_raw
authorGwendal Grignou <gwendal@chromium.org>
Thu, 4 Nov 2021 08:24:11 +0000 (01:24 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:43 +0000 (17:51 +0000)
commitaad54091e1b50d725baa31c11358e6d6dcf44cf0
tree5230c2facb98edc28abd5b3e78d4df709374e206
parent4d57fb548a1b086fc216c94cc186fba03c396190
iio: ti-ads1015: Remove shift variable ads1015_read_raw

By using scan_type.realbits when processing raw data,
we use scan_type.shit only once, thus we don't need to define a local
variable for it anymore.

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