Repository navigation
Commit 065056c
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>1 parent abb7e84 commit 065056c
1 file changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
877 | 886 | | |
878 | 887 | | |
879 | 888 | | |
880 | 889 | | |
881 | 890 | | |
882 | 891 | | |
883 | 892 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
| 893 | + | |
888 | 894 | | |
889 | | - | |
| 895 | + | |
890 | 896 | | |
891 | 897 | | |
892 | 898 | | |
| |||
938 | 944 | | |
939 | 945 | | |
940 | 946 | | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
| 947 | + | |
945 | 948 | | |
946 | | - | |
| 949 | + | |
947 | 950 | | |
948 | 951 | | |
949 | 952 | | |
| |||
1937 | 1940 | | |
1938 | 1941 | | |
1939 | 1942 | | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
| 1943 | + | |
1944 | 1944 | | |
1945 | | - | |
| 1945 | + | |
1946 | 1946 | | |
1947 | | - | |
1948 | 1947 | | |
1949 | 1948 | | |
1950 | 1949 | | |
| |||
0 commit comments