Revert "staging: iio: frequency: ad9834: Validate frequency parameter value"

This reverts commit 46f65f7b83.
This commit is contained in:
Ksawlii 2024-11-24 00:23:38 +01:00
parent caee88ae5f
commit f892b38843

View file

@ -115,7 +115,7 @@ static int ad9834_write_frequency(struct ad9834_state *st,
clk_freq = clk_get_rate(st->mclk); clk_freq = clk_get_rate(st->mclk);
if (!clk_freq || fout > (clk_freq / 2)) if (fout > (clk_freq / 2))
return -EINVAL; return -EINVAL;
regval = ad9834_calc_freqreg(clk_freq, fout); regval = ad9834_calc_freqreg(clk_freq, fout);