Searched refs:odr_sel_bits (Results 1 – 1 of 1) sorted by relevance
163 unsigned int odr_sel_bits;270 unsigned int fclk, odr_sel_bits; in ad7124_set_channel_odr() local280 odr_sel_bits = DIV_ROUND_CLOSEST(fclk, odr * 32); in ad7124_set_channel_odr()281 if (odr_sel_bits < 1) in ad7124_set_channel_odr()282 odr_sel_bits = 1; in ad7124_set_channel_odr()283 else if (odr_sel_bits > 2047) in ad7124_set_channel_odr()284 odr_sel_bits = 2047; in ad7124_set_channel_odr()286 if (odr_sel_bits != st->channels[channel].cfg.odr_sel_bits) in ad7124_set_channel_odr()290 st->channels[channel].cfg.odr = DIV_ROUND_CLOSEST(fclk, odr_sel_bits * 32); in ad7124_set_channel_odr()291 st->channels[channel].cfg.odr_sel_bits = odr_sel_bits; in ad7124_set_channel_odr()[all …]