Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_gyro.c196 static const int inv_icm42600_gyro_scale[] = { variable
230 *val = inv_icm42600_gyro_scale[2 * idx]; in inv_icm42600_gyro_read_scale()
231 *val2 = inv_icm42600_gyro_scale[2 * idx + 1]; in inv_icm42600_gyro_read_scale()
243 for (idx = 0; idx < ARRAY_SIZE(inv_icm42600_gyro_scale); idx += 2) { in inv_icm42600_gyro_write_scale()
244 if (val == inv_icm42600_gyro_scale[idx] && in inv_icm42600_gyro_write_scale()
245 val2 == inv_icm42600_gyro_scale[idx + 1]) in inv_icm42600_gyro_write_scale()
248 if (idx >= ARRAY_SIZE(inv_icm42600_gyro_scale)) in inv_icm42600_gyro_write_scale()
596 *vals = inv_icm42600_gyro_scale; in inv_icm42600_gyro_read_avail()
598 *length = ARRAY_SIZE(inv_icm42600_gyro_scale); in inv_icm42600_gyro_read_avail()