Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/accel/
H A Dbma220_spi.c119 u8 range_idx; in bma220_read_raw() local
134 range_idx = ret & BMA220_RANGE_MASK; in bma220_read_raw()
135 *val = bma220_scale_table[range_idx][0]; in bma220_read_raw()
136 *val2 = bma220_scale_table[range_idx][1]; in bma220_read_raw()
H A Dfxls8962af-core.c365 u8 range_idx; in fxls8962af_read_full_scale() local
371 range_idx = FXLS8962AF_SC1_FSR_GET(reg); in fxls8962af_read_full_scale()
373 *val = fxls8962af_scale_table[range_idx][1]; in fxls8962af_read_full_scale()
401 u8 range_idx; in fxls8962af_read_samp_freq() local
407 range_idx = FXLS8962AF_SC3_WAKE_ODR_GET(reg); in fxls8962af_read_samp_freq()
409 *val = fxls8962af_samp_freq_table[range_idx][0]; in fxls8962af_read_samp_freq()
410 *val2 = fxls8962af_samp_freq_table[range_idx][1]; in fxls8962af_read_samp_freq()