Searched refs:rate_sel (Results 1 – 1 of 1) sorted by relevance
1490 int rate_sel = 0; in ds3231_clk_sqw_recalc_rate() local1496 rate_sel += 1; in ds3231_clk_sqw_recalc_rate()1498 rate_sel += 2; in ds3231_clk_sqw_recalc_rate()1500 return ds3231_clk_sqw_rates[rate_sel]; in ds3231_clk_sqw_recalc_rate()1521 int rate_sel; in ds3231_clk_sqw_set_rate() local1523 for (rate_sel = 0; rate_sel < ARRAY_SIZE(ds3231_clk_sqw_rates); in ds3231_clk_sqw_set_rate()1524 rate_sel++) { in ds3231_clk_sqw_set_rate()1525 if (ds3231_clk_sqw_rates[rate_sel] == rate) in ds3231_clk_sqw_set_rate()1529 if (rate_sel == ARRAY_SIZE(ds3231_clk_sqw_rates)) in ds3231_clk_sqw_set_rate()1532 if (rate_sel & 1) in ds3231_clk_sqw_set_rate()[all …]