mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
fix: add adc-iio test log
Signed-off-by: zhangyalei <zhangyalei7@huawei.com>
This commit is contained in:
@@ -123,6 +123,7 @@ int32_t AdcTestRead(void)
|
||||
return HDF_ERR_IO;
|
||||
}
|
||||
}
|
||||
HDF_LOGI("%s: ADC device num is %u", __func__, tester->config.devNum);
|
||||
|
||||
AdcTesterPut(tester);
|
||||
HDF_LOGI("%s: done", __func__);
|
||||
|
||||
@@ -57,7 +57,8 @@ static int AdcReadRaw(struct iio_dev *indioDev, struct iio_chan_spec const *chan
|
||||
{
|
||||
struct VirtualAdcDev *dev = NULL;
|
||||
int ret;
|
||||
|
||||
|
||||
HDF_LOGI("%s: Enter", __func__);
|
||||
if (indioDev == NULL || chan == NULL || val == NULL || val2 == NULL) {
|
||||
HDF_LOGE("%s: Illegal parameter", __func__);
|
||||
return -EINVAL;
|
||||
@@ -66,7 +67,7 @@ static int AdcReadRaw(struct iio_dev *indioDev, struct iio_chan_spec const *chan
|
||||
HDF_LOGE("%s: ADC_SCALE_DATA is Illegal", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
dev = iio_priv(indioDev);
|
||||
switch (mask) {
|
||||
case IIO_CHAN_INFO_RAW:
|
||||
|
||||
Reference in New Issue
Block a user