|
@@ -277,12 +277,9 @@ static int ssp_handle_big_data(struct ssp_data *data, char *dataframe, int *idx)
|
|
static int ssp_parse_dataframe(struct ssp_data *data, char *dataframe, int len)
|
|
static int ssp_parse_dataframe(struct ssp_data *data, char *dataframe, int len)
|
|
{
|
|
{
|
|
int idx, sd;
|
|
int idx, sd;
|
|
- struct timespec ts;
|
|
|
|
struct ssp_sensor_data *spd;
|
|
struct ssp_sensor_data *spd;
|
|
struct iio_dev **indio_devs = data->sensor_devs;
|
|
struct iio_dev **indio_devs = data->sensor_devs;
|
|
|
|
|
|
- getnstimeofday(&ts);
|
|
|
|
-
|
|
|
|
for (idx = 0; idx < len;) {
|
|
for (idx = 0; idx < len;) {
|
|
switch (dataframe[idx++]) {
|
|
switch (dataframe[idx++]) {
|
|
case SSP_MSG2AP_INST_BYPASS_DATA:
|
|
case SSP_MSG2AP_INST_BYPASS_DATA:
|
|
@@ -329,7 +326,7 @@ static int ssp_parse_dataframe(struct ssp_data *data, char *dataframe, int len)
|
|
}
|
|
}
|
|
|
|
|
|
if (data->time_syncing)
|
|
if (data->time_syncing)
|
|
- data->timestamp = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
|
|
|
|
|
+ data->timestamp = ktime_get_real_ns();
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|