iio: frequency: ad9523: Fix typo in ad9523_platform_data
Replace diff_{m1,m2} with div_{m1,m2} since they are dividers and not a differential settings. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:

committed by
Jonathan Cameron

parent
89c16919a0
commit
5cd6623957
@@ -872,22 +872,22 @@ static int ad9523_setup(struct iio_dev *indio_dev)
|
||||
return ret;
|
||||
|
||||
ret = ad9523_write(indio_dev, AD9523_PLL2_VCO_DIVIDER,
|
||||
AD9523_PLL2_VCO_DIV_M1(pdata->pll2_vco_diff_m1) |
|
||||
AD9523_PLL2_VCO_DIV_M2(pdata->pll2_vco_diff_m2) |
|
||||
AD_IFE(pll2_vco_diff_m1, 0,
|
||||
AD9523_PLL2_VCO_DIV_M1(pdata->pll2_vco_div_m1) |
|
||||
AD9523_PLL2_VCO_DIV_M2(pdata->pll2_vco_div_m2) |
|
||||
AD_IFE(pll2_vco_div_m1, 0,
|
||||
AD9523_PLL2_VCO_DIV_M1_PWR_DOWN_EN) |
|
||||
AD_IFE(pll2_vco_diff_m2, 0,
|
||||
AD_IFE(pll2_vco_div_m2, 0,
|
||||
AD9523_PLL2_VCO_DIV_M2_PWR_DOWN_EN));
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (pdata->pll2_vco_diff_m1)
|
||||
if (pdata->pll2_vco_div_m1)
|
||||
st->vco_out_freq[AD9523_VCO1] =
|
||||
st->vco_freq / pdata->pll2_vco_diff_m1;
|
||||
st->vco_freq / pdata->pll2_vco_div_m1;
|
||||
|
||||
if (pdata->pll2_vco_diff_m2)
|
||||
if (pdata->pll2_vco_div_m2)
|
||||
st->vco_out_freq[AD9523_VCO2] =
|
||||
st->vco_freq / pdata->pll2_vco_diff_m2;
|
||||
st->vco_freq / pdata->pll2_vco_div_m2;
|
||||
|
||||
st->vco_out_freq[AD9523_VCXO] = pdata->vcxo_freq;
|
||||
|
||||
|
Reference in New Issue
Block a user