]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: meson: fix voltage reference selection field name typo
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 24 Dec 2024 14:29:39 +0000 (15:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:16 +0000 (14:28 +0000)
The field should be called "vref_voltage", without a typo in the word
voltage. No functional changes intended.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://patch.msgid.link/20241224142941.97759-2-martin.blumenstingl@googlemail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c

index 2d475b43e717ff08a2e5e20504dc657ebbb921a5..4cfbb3482a2e58bb894741a45a9be5a48a93e103 100644 (file)
@@ -327,7 +327,7 @@ struct meson_sar_adc_param {
        u8                                      vref_select;
        u8                                      cmv_select;
        u8                                      adc_eoc;
-       enum meson_sar_adc_vref_sel             vref_volatge;
+       enum meson_sar_adc_vref_sel             vref_voltage;
 };
 
 struct meson_sar_adc_data {
@@ -989,7 +989,7 @@ static int meson_sar_adc_init(struct iio_dev *indio_dev)
                }
 
                regval = FIELD_PREP(MESON_SAR_ADC_REG11_VREF_VOLTAGE,
-                                   priv->param->vref_volatge);
+                                   priv->param->vref_voltage);
                regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG11,
                                   MESON_SAR_ADC_REG11_VREF_VOLTAGE, regval);
 
@@ -1212,7 +1212,7 @@ static const struct meson_sar_adc_param meson_sar_adc_gxbb_param = {
        .regmap_config = &meson_sar_adc_regmap_config_gxbb,
        .resolution = 10,
        .has_reg11 = true,
-       .vref_volatge = 1,
+       .vref_voltage = 1,
        .cmv_select = 1,
 };
 
@@ -1224,7 +1224,7 @@ static const struct meson_sar_adc_param meson_sar_adc_gxl_param = {
        .resolution = 12,
        .disable_ring_counter = 1,
        .has_reg11 = true,
-       .vref_volatge = 1,
+       .vref_voltage = 1,
        .cmv_select = 1,
 };
 
@@ -1236,7 +1236,7 @@ static const struct meson_sar_adc_param meson_sar_adc_axg_param = {
        .resolution = 12,
        .disable_ring_counter = 1,
        .has_reg11 = true,
-       .vref_volatge = 1,
+       .vref_voltage = 1,
        .has_vref_select = true,
        .vref_select = VREF_VDDA,
        .cmv_select = 1,