]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb81004b398b7645dc119499acca892bd23be817f
tree48e4e87f06b0f45afce0ab5f3fba8c8067af5521
parent9dfb975257ecf1d0a257764f6a62b969692f2b04
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