iio: at91-sama5d2_adc: split at91_adc_current_chan_is_touch() helper
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 4 Mar 2020 08:42:18 +0000 (10:42 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 14:57:07 +0000 (15:57 +0100)
commit065056cb0d0ad42b04bcdfbce84cc7136f919ee6
tree48e4e87f06b0f45afce0ab5f3fba8c8067af5521
parentabb7e84d29b0d9fc9410661aceffecb5e22ad006
iio: at91-sama5d2_adc: split at91_adc_current_chan_is_touch() helper

This change moves the logic to check if the current channel is the
touchscreen channel to a separate helper.
This reduces some code duplication, but the main intent is to re-use this
in the next patches.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c