Lines Matching refs:gdata
39 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_get_mount_matrix() local
41 return &gdata->mount_matrix; in st_gyro_get_mount_matrix()
382 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_read_raw() local
393 *val2 = gdata->current_fullscale->gain; in st_gyro_read_raw()
396 *val = gdata->odr; in st_gyro_read_raw()
472 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_common_probe() local
484 gdata->num_data_channels = ST_GYRO_NUMBER_DATA_CHANNELS; in st_gyro_common_probe()
485 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
488 err = iio_read_mount_matrix(parent, &gdata->mount_matrix); in st_gyro_common_probe()
492 gdata->current_fullscale = &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
493 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
505 if (gdata->irq > 0) { in st_gyro_common_probe()