/* Continue the next detection if the sensor is not detected. */
/* Continue the next detection if the sensor is not detected. */
if (drvData->detectFlag) {
if (drvData->detectFlag) {
HDF_LOGE("%s: Accel sensor have detected", __func__);
HDF_LOGE("%s: Accel sensor have detected", __func__);
...
@@ -225,12 +226,12 @@ The sensor driver model also provides certain driver development APIs that need
...
@@ -225,12 +226,12 @@ The sensor driver model also provides certain driver development APIs that need
goto INIT_EXIT;
goto INIT_EXIT;
}
}
return drvData->accelCfg;
return drvData->accelCfg;
......
...
}
}
/* The entry function of the acceleration sensor driver is used to initialize the sensor private data structure object, allocate space for the sensor HCS data configuration object, call the entry function for initializing the sensor HCS data configuration, detect whether the sensor device is in position, create a sensor data reporting timer, register the sensor normalization APIs, and register the sensor device. */
/* The entry function of the acceleration sensor driver is used to initialize the sensor private data structure object, allocate space for the sensor HCS data configuration object, call the entry function for initializing the sensor HCS data configuration, detect whether the sensor device is in position, create a sensor data reporting timer, register the sensor normalization APIs, and register the sensor device. */