Home
last modified time | relevance | path

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

/drivers/iio/imu/
Dkmx61.c420 int lodr_bits, odr_bits; in kmx61_set_odr() local
426 lodr_bits = kmx61_convert_freq_to_bit(val, val2); in kmx61_set_odr()
427 if (lodr_bits < 0) in kmx61_set_odr()
428 return lodr_bits; in kmx61_set_odr()
438 odr_bits |= lodr_bits << KMX61_ACC_ODR_SHIFT; in kmx61_set_odr()
440 odr_bits |= lodr_bits << KMX61_MAG_ODR_SHIFT; in kmx61_set_odr()
461 u8 lodr_bits; in kmx61_get_odr() local
464 lodr_bits = (data->odr_bits >> KMX61_ACC_ODR_SHIFT) & in kmx61_get_odr()
467 lodr_bits = (data->odr_bits >> KMX61_MAG_ODR_SHIFT) & in kmx61_get_odr()
472 if (lodr_bits >= ARRAY_SIZE(kmx61_samp_freq_table)) in kmx61_get_odr()
[all …]