Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/accel/
H A Dmma8452.c294 static const int mma8452_samp_freq[8][2] = { variable
377 return mma8452_show_int_plus_micros(buf, mma8452_samp_freq, in mma8452_show_samp_freq_avail()
378 ARRAY_SIZE(mma8452_samp_freq)); in mma8452_show_samp_freq_avail()
444 return mma8452_get_int_plus_micros_index(mma8452_samp_freq, in mma8452_get_samp_freq_index()
445 ARRAY_SIZE(mma8452_samp_freq), in mma8452_get_samp_freq_index()
523 *val = mma8452_samp_freq[i][0]; in mma8452_read_raw()
524 *val2 = mma8452_samp_freq[i][1]; in mma8452_read_raw()
566 if (mma8452_samp_freq[i][0] > 0) in mma8452_calculate_sleep()
567 ret = 1000 / mma8452_samp_freq[i][0]; in mma8452_calculate_sleep()
1810 sleep_val = 1000 / mma8452_samp_freq[ret][0]; in mma8452_runtime_resume()