Skip to content

Commit 5cd6623

Browse files
larsclausenJonathan Cameron
authored andcommitted
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>
1 parent 89c1691 commit 5cd6623

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/iio/frequency/ad9523.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -872,22 +872,22 @@ static int ad9523_setup(struct iio_dev *indio_dev)
872872
return ret;
873873

874874
ret = ad9523_write(indio_dev, AD9523_PLL2_VCO_DIVIDER,
875-
AD9523_PLL2_VCO_DIV_M1(pdata->pll2_vco_diff_m1) |
876-
AD9523_PLL2_VCO_DIV_M2(pdata->pll2_vco_diff_m2) |
877-
AD_IFE(pll2_vco_diff_m1, 0,
875+
AD9523_PLL2_VCO_DIV_M1(pdata->pll2_vco_div_m1) |
876+
AD9523_PLL2_VCO_DIV_M2(pdata->pll2_vco_div_m2) |
877+
AD_IFE(pll2_vco_div_m1, 0,
878878
AD9523_PLL2_VCO_DIV_M1_PWR_DOWN_EN) |
879-
AD_IFE(pll2_vco_diff_m2, 0,
879+
AD_IFE(pll2_vco_div_m2, 0,
880880
AD9523_PLL2_VCO_DIV_M2_PWR_DOWN_EN));
881881
if (ret < 0)
882882
return ret;
883883

884-
if (pdata->pll2_vco_diff_m1)
884+
if (pdata->pll2_vco_div_m1)
885885
st->vco_out_freq[AD9523_VCO1] =
886-
st->vco_freq / pdata->pll2_vco_diff_m1;
886+
st->vco_freq / pdata->pll2_vco_div_m1;
887887

888-
if (pdata->pll2_vco_diff_m2)
888+
if (pdata->pll2_vco_div_m2)
889889
st->vco_out_freq[AD9523_VCO2] =
890-
st->vco_freq / pdata->pll2_vco_diff_m2;
890+
st->vco_freq / pdata->pll2_vco_div_m2;
891891

892892
st->vco_out_freq[AD9523_VCXO] = pdata->vcxo_freq;
893893

‎include/linux/iio/frequency/ad9523.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ enum cpole1_capacitor {
129129
* @pll2_ndiv_b_cnt: PLL2 Feedback N-divider, B Counter, range 0..63.
130130
* @pll2_freq_doubler_en: PLL2 frequency doubler enable.
131131
* @pll2_r2_div: PLL2 R2 divider, range 0..31.
132-
* @pll2_vco_diff_m1: VCO1 divider, range 3..5.
133-
* @pll2_vco_diff_m2: VCO2 divider, range 3..5.
132+
* @pll2_vco_div_m1: VCO1 divider, range 3..5.
133+
* @pll2_vco_div_m2: VCO2 divider, range 3..5.
134134
* @rpole2: PLL2 loop filter Rpole resistor value.
135135
* @rzero: PLL2 loop filter Rzero resistor value.
136136
* @cpole1: PLL2 loop filter Cpole capacitor value.
@@ -176,8 +176,8 @@ struct ad9523_platform_data {
176176
unsigned char pll2_ndiv_b_cnt;
177177
bool pll2_freq_doubler_en;
178178
unsigned char pll2_r2_div;
179-
unsigned char pll2_vco_diff_m1; /* 3..5 */
180-
unsigned char pll2_vco_diff_m2; /* 3..5 */
179+
unsigned char pll2_vco_div_m1; /* 3..5 */
180+
unsigned char pll2_vco_div_m2; /* 3..5 */
181181

182182
/* Loop Filter PLL2 */
183183
enum rpole2_resistor rpole2;

0 commit comments

Comments
 (0)