Searched refs:adata (Results 1 – 4 of 4) sorted by relevance
41 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_buffer_postenable() local43 adata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_accel_buffer_postenable()44 if (adata->buffer_data == NULL) { in st_accel_buffer_postenable()61 kfree(adata->buffer_data); in st_accel_buffer_postenable()69 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_buffer_predisable() local82 kfree(adata->buffer_data); in st_accel_buffer_predisable()
550 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_read_raw() local561 *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() local632 (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()[all …]
24 struct st_sensor_data *adata; in st_accel_spi_probe() local27 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*adata)); in st_accel_spi_probe()31 adata = iio_priv(indio_dev); in st_accel_spi_probe()33 st_sensors_spi_configure(indio_dev, spi, adata); in st_accel_spi_probe()
86 struct st_sensor_data *adata; in st_accel_i2c_probe() local89 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*adata)); in st_accel_i2c_probe()93 adata = iio_priv(indio_dev); in st_accel_i2c_probe()96 st_sensors_i2c_configure(indio_dev, client, adata); in st_accel_i2c_probe()