Searched refs:odr_sel_bits (Results 1 – 1 of 1) sorted by relevance
158 unsigned int odr_sel_bits;265 unsigned int fclk, odr_sel_bits; in ad7124_set_channel_odr() local275 odr_sel_bits = DIV_ROUND_CLOSEST(fclk, odr * 32); in ad7124_set_channel_odr()276 if (odr_sel_bits < 1) in ad7124_set_channel_odr()277 odr_sel_bits = 1; in ad7124_set_channel_odr()278 else if (odr_sel_bits > 2047) in ad7124_set_channel_odr()279 odr_sel_bits = 2047; in ad7124_set_channel_odr()281 if (odr_sel_bits != st->channels[channel].cfg.odr_sel_bits) in ad7124_set_channel_odr()285 st->channels[channel].cfg.odr = DIV_ROUND_CLOSEST(fclk, odr_sel_bits * 32); in ad7124_set_channel_odr()286 st->channels[channel].cfg.odr_sel_bits = odr_sel_bits; in ad7124_set_channel_odr()[all …]