Revert "staging: iio: frequency: ad9834: Validate frequency parameter value"
This reverts commit 46f65f7b83
.
This commit is contained in:
parent
caee88ae5f
commit
f892b38843
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue