staging: iio: adc: ad7280a: split ad7280_channel_init() to more functions
authorSlawomir Stepien <sst@poczta.fm>
Wed, 12 Dec 2018 17:02:27 +0000 (18:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Dec 2018 14:05:57 +0000 (14:05 +0000)
commit243c5c9d7b6250ce5e03cd88e48a40f961251b4e
tree48c18530ad458a65e9f076f95e8371e89db00a47
parent05cf4fe738242183f1237f1b3a28b4479348c0a1
staging: iio: adc: ad7280a: split ad7280_channel_init() to more functions

The ad7280_channel_init function has been split into more specific
functions to increase the code readability.

The setting of channel's scan_type.shift to 0, has been removed, since
it is the default value.

Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7280a.c