Lines Matching refs:adata
550 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_read_raw() local
561 *val2 = adata->current_fullscale->gain; in st_accel_read_raw()
564 *val = adata->odr; in st_accel_read_raw()
630 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_probe() local
632 (struct st_sensors_platform_data *)adata->dev->platform_data; in st_accel_common_probe()
633 int irq = adata->get_irq_data_ready(indio_dev); in st_accel_common_probe()
638 mutex_init(&adata->tb.buf_lock); in st_accel_common_probe()
648 adata->num_data_channels = ST_ACCEL_NUMBER_DATA_CHANNELS; in st_accel_common_probe()
649 adata->multiread_bit = adata->sensor_settings->multi_read_bit; in st_accel_common_probe()
650 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()
653 adata->current_fullscale = (struct st_sensor_fullscale_avl *) in st_accel_common_probe()
654 &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
655 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
696 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_remove() local
701 if (adata->get_irq_data_ready(indio_dev) > 0) in st_accel_common_remove()