Home
last modified time | relevance | path

Searched refs:sensor_settings (Results 1 – 5 of 5) sorted by relevance

/drivers/iio/common/st_sensors/
Dst_sensors_core.c69 static int st_sensors_match_odr(struct st_sensor_settings *sensor_settings, in st_sensors_match_odr() argument
75 if (sensor_settings->odr.odr_avl[i].hz == 0) in st_sensors_match_odr()
78 if (sensor_settings->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr()
79 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; in st_sensors_match_odr()
80 odr_out->value = sensor_settings->odr.odr_avl[i].value; in st_sensors_match_odr()
96 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
100 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
101 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
102 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
103 sdata->sensor_settings->pw.mask)) { in st_sensors_set_odr()
[all …]
/drivers/iio/pressure/
Dst_pressure_core.c457 press_data->multiread_bit = press_data->sensor_settings->multi_read_bit; in st_press_common_probe()
458 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()
459 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
461 if (press_data->sensor_settings->fs.addr != 0) in st_press_common_probe()
464 &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()
466 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
469 if (!pdata && press_data->sensor_settings->drdy_irq.addr) in st_press_common_probe()
/drivers/iio/gyro/
Dst_gyro_core.c418 gdata->multiread_bit = gdata->sensor_settings->multi_read_bit; in st_gyro_common_probe()
419 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
423 &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
424 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
/drivers/iio/magnetometer/
Dst_magn_core.c595 mdata->multiread_bit = mdata->sensor_settings->multi_read_bit; in st_magn_common_probe()
596 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
600 &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
601 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
/drivers/iio/accel/
Dst_accel_core.c649 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()
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()