s5j/adc: check the number of configured channels
authorHeesub Shin <heesub.shin@samsung.com>
Fri, 7 Apr 2017 05:44:54 +0000 (14:44 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:12 +0000 (12:02 +0900)
commite213fba1c483a255a272a2eef6454f7fa9e788b0
tree02bc728e45086a889142fc49a933459cfbef489b
parent3ad53f931888a2822b2055834ba424815de8cfb8
s5j/adc: check the number of configured channels

S5J has 4 ADC channels maximum. If it is requested to be configured
greater than that, s5j_adc_initialize() should return an error.

Change-Id: I4dd071c288b530b90c86b55dca78a12b9cc1bde6
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/s5j/s5j_adc.c
os/arch/arm/src/s5j/s5j_adc.h