From: Konrad Kuchciak Date: Tue, 4 Sep 2018 04:37:17 +0000 (+0200) Subject: adc: fix adc_read_n2 test case X-Git-Tag: submit/tizen/20180907.001350^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F188332%2F1;p=platform%2Fcore%2Fapi%2Fperipheral-io.git adc: fix adc_read_n2 test case Change-Id: I408ea83f787a5f48f883a3455dc660f1a7039d9e Signed-off-by: Konrad Kuchciak --- diff --git a/test/src/test_peripheral_adc.c b/test/src/test_peripheral_adc.c index 20595c0..72645e7 100644 --- a/test/src/test_peripheral_adc.c +++ b/test/src/test_peripheral_adc.c @@ -224,10 +224,8 @@ int test_peripheral_io_adc_peripheral_adc_read_n2(void) peripheral_adc_h adc_h = NULL; - uint32_t value; - if (g_feature == false) { - ret = peripheral_adc_read(adc_h, &value); + ret = peripheral_adc_read(adc_h, NULL); if (ret != PERIPHERAL_ERROR_NOT_SUPPORTED) return ret; @@ -236,7 +234,7 @@ int test_peripheral_io_adc_peripheral_adc_read_n2(void) if (ret != PERIPHERAL_ERROR_NONE) return ret; - ret = peripheral_adc_read(adc_h, &value); + ret = peripheral_adc_read(adc_h, NULL); if (ret != PERIPHERAL_ERROR_INVALID_PARAMETER) { peripheral_adc_close(adc_h); return ret;