]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: fix typos found by codespell
authorGiorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
Wed, 25 Feb 2026 13:08:59 +0000 (17:08 +0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Mar 2026 12:04:44 +0000 (12:04 +0000)
Fix various spelling mistakes in comments and error messages
across drivers/iio/adc/, found by running codespell.

Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
24 files changed:
drivers/iio/adc/ad4030.c
drivers/iio/adc/ad4170-4.c
drivers/iio/adc/ad7380.c
drivers/iio/adc/ad7793.c
drivers/iio/adc/ad7887.c
drivers/iio/adc/ad7923.c
drivers/iio/adc/ade9000.c
drivers/iio/adc/at91-sama5d2_adc.c
drivers/iio/adc/at91_adc.c
drivers/iio/adc/fsl-imx25-gcq.c
drivers/iio/adc/max1363.c
drivers/iio/adc/mcp3564.c
drivers/iio/adc/men_z188_adc.c
drivers/iio/adc/nau7802.c
drivers/iio/adc/npcm_adc.c
drivers/iio/adc/pac1921.c
drivers/iio/adc/palmas_gpadc.c
drivers/iio/adc/rohm-bd79124.c
drivers/iio/adc/spear_adc.c
drivers/iio/adc/stm32-adc-core.c
drivers/iio/adc/stm32-adc.c
drivers/iio/adc/sun20i-gpadc-iio.c
drivers/iio/adc/twl4030-madc.c
drivers/iio/adc/twl6030-gpadc.c

index def3e1d01ceb53dfa9f876e5d4bcb08fe14bb0fc..eebb6f5835adbd840a41f14c911279ed7e20e5f0 100644 (file)
@@ -629,7 +629,7 @@ static int ad4030_conversion(struct iio_dev *indio_dev)
        /* Add one byte if we are using a differential + common byte mode */
        bytes_to_read += (st->mode == AD4030_OUT_DATA_MD_24_DIFF_8_COM ||
                        st->mode == AD4030_OUT_DATA_MD_16_DIFF_8_COM) ? 1 : 0;
-       /* Mulitiply by the number of hardware channels */
+       /* Multiply by the number of hardware channels */
        bytes_to_read *= st->chip->num_voltage_inputs;
 
        for (i = 0; i < cnv_nb; i++) {
index 82205bfae531ebff06351a976a169e117bc186b7..77af0e6b2c59642eb2538f3fc40292c1bf7c1d8c 100644 (file)
@@ -275,9 +275,9 @@ static const unsigned int ad4170_reg_size[] = {
 };
 
 enum ad4170_ref_buf {
-       AD4170_REF_BUF_PRE,     /* Pre-charge referrence buffer */
-       AD4170_REF_BUF_FULL,    /* Full referrence buffering */
-       AD4170_REF_BUF_BYPASS,  /* Bypass referrence buffering */
+       AD4170_REF_BUF_PRE,     /* Pre-charge reference buffer */
+       AD4170_REF_BUF_FULL,    /* Full reference buffering */
+       AD4170_REF_BUF_BYPASS,  /* Bypass reference buffering */
 };
 
 /* maps adi,positive/negative-reference-buffer property values to enum */
index ca411371816f588483dd78d582b004a049a1a658..9f77990a03f93429d5bc8aebffa21f40dd8b3eac 100644 (file)
@@ -1862,7 +1862,7 @@ static int ad7380_probe_spi_offload(struct iio_dev *indio_dev,
 
        /*
         * Starting with a quite low frequency, to allow oversampling x32,
-        * user is then reponsible to adjust the frequency for the specific case.
+        * user is then responsible to adjust the frequency for the specific case.
         */
        ret = ad7380_set_sample_freq(st, sample_rate / 32);
        if (ret)
index ccf18ce48e349a711c470a806f0cdf3763eafb48..b6d86c62f24a1148c56b7ffd868a5ce3a5a38883 100644 (file)
@@ -805,7 +805,7 @@ static int ad7793_probe(struct spi_device *spi)
 
                vref_mv = ret / 1000;
        } else {
-               vref_mv = 1170; /* Build-in ref */
+               vref_mv = 1170; /* Built-in ref */
        }
 
        st->chip_info =
index 87ff95643794c0e69e09595b545113b70f0fb8a7..068171d54596ac73ad8a79fd23385c65b7f29e28 100644 (file)
@@ -104,7 +104,7 @@ static int ad7887_ring_postdisable(struct iio_dev *indio_dev)
 {
        struct ad7887_state *st = iio_priv(indio_dev);
 
-       /* dummy read: restore default CH0 settin */
+       /* dummy read: restore default CH0 settings */
        return spi_sync(st->spi, &st->msg[AD7887_CH0]);
 }
 
index 0369151c7db1e142823bf0ad7d61994aa7c2d0ff..acc87d486aa421d8401493e5461e58b14e6051ca 100644 (file)
@@ -30,7 +30,7 @@
 #define AD7923_PM_MODE_AS      (1)             /* auto shutdown */
 #define AD7923_PM_MODE_FS      (2)             /* full shutdown */
 #define AD7923_PM_MODE_OPS     (3)             /* normal operation */
-#define AD7923_SEQUENCE_OFF    (0)             /* no sequence fonction */
+#define AD7923_SEQUENCE_OFF    (0)             /* no sequence function */
 #define AD7923_SEQUENCE_PROTECT        (2)             /* no interrupt write cycle */
 #define AD7923_SEQUENCE_ON     (3)             /* continuous sequence */
 
@@ -39,7 +39,7 @@
 #define AD7923_CHANNEL_WRITE(channel)  ((channel) << 6) /* write channel */
 #define AD7923_SEQUENCE_WRITE(sequence)        ((((sequence) & 1) << 3) \
                                        + (((sequence) & 2) << 9))
-                                               /* write sequence fonction */
+                                               /* write sequence function */
 /* left shift for CR : bit 11 transmit in first */
 #define AD7923_SHIFT_REGISTER  4
 
index 4be8df34428d85e8005d62e83ee58f49db27ecae..b48728a759bce748a30b175ea8a1bf68a5efea25 100644 (file)
@@ -1548,7 +1548,7 @@ static int ade9000_buffer_postdisable(struct iio_dev *indio_dev)
 
        ret = regmap_clear_bits(st->regmap, ADE9000_REG_MASK0, interrupts);
        if (ret) {
-               dev_err(dev, "Post-disable update maks0 fail\n");
+               dev_err(dev, "Post-disable update mask0 fail\n");
                return ret;
        }
 
index aa4ba3f5a50603c42f4c00a5c0005f02d73a9dab..69bb49434f90c1175d1c27631f1d44478277a3ba 100644 (file)
@@ -2507,7 +2507,7 @@ static int at91_adc_suspend(struct device *dev)
                at91_adc_buffer_postdisable(indio_dev);
 
        /*
-        * Do a sofware reset of the ADC before we go to suspend.
+        * Do a software reset of the ADC before we go to suspend.
         * this will ensure that all pins are free from being muxed by the ADC
         * and can be used by for other devices.
         * Otherwise, ADC will hog them and we can't go to suspend mode.
index 8942d15b39780b72f38414f8513bb969896b94b9..6e1930f7c65d9eb954aea94841d23e080a7dafec 100644 (file)
@@ -171,7 +171,7 @@ struct at91_adc_trigger {
 };
 
 /**
- * struct at91_adc_reg_desc - Various informations relative to registers
+ * struct at91_adc_reg_desc - Various information relative to registers
  * @channel_base:      Base offset for the channel data registers
  * @drdy_mask:         Mask of the DRDY field in the relevant registers
  *                     (Interruptions registers mostly)
@@ -231,7 +231,7 @@ struct at91_adc_state {
        struct iio_trigger      **trig;
        bool                    use_external;
        u32                     vref_mv;
-       u32                     res;            /* resolution used for convertions */
+       u32                     res;            /* resolution used for conversions */
        wait_queue_head_t       wq_data_avail;
        const struct at91_adc_caps      *caps;
 
index f8c220f6a7b47d90d181bc16deb623125bf17c52..e6268f7ac400cedeb391cc20bb7514a02e8cb9ed 100644 (file)
@@ -47,7 +47,7 @@ struct mx25_gcq_priv {
         * of register writes, then a wait for a completion callback,
         * and finally a register read, during which userspace could issue
         * another read request. This lock protects a read access from
-        * ocurring before another one has finished.
+        * occurring before another one has finished.
         */
        struct mutex lock;
 };
index 9dd547e62b6c143fc33925e36332ac5c322a9c40..d35f4487b2f9542bab8c3005e57d837bc9926819 100644 (file)
@@ -121,7 +121,7 @@ enum max1363_modes {
 };
 
 /**
- * struct max1363_chip_info - chip specifc information
+ * struct max1363_chip_info - chip specific information
  * @info:              iio core function callbacks structure
  * @channels:          channel specification
  * @num_channels:       number of channels
index fcdf13f49c48f31ba3a0a9079686d2b81a792744..36675563829efbc610f7ef181a4854dfac328cff 100644 (file)
@@ -349,7 +349,7 @@ struct mcp3564_chip_info {
  * struct mcp3564_state - working data for a ADC device
  * @chip_info:         chip specific data
  * @spi:               SPI device structure
- * @vref_mv:           voltage reference value in miliVolts
+ * @vref_mv:           voltage reference value in millivolts
  * @lock:              synchronize access to driver's state members
  * @dev_addr:          hardware device address
  * @oversampling:      the index inside oversampling list of the ADC
index 90919d282e7b938fd9a44110a0be256ef8b718be..5bd334ec565544d9c983940c525093147a4f304b 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * MEN 16z188 Analog to Digial Converter
+ * MEN 16z188 Analog to Digital Converter
  *
  * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de)
  * Author: Johannes Thumshirn <johannes.thumshirn@men.de>
index 458544cb8ee48a4a030acc23fce9e7caa2ad65b4..1a42c7962ec927e0b170218c7f982afc129cefde 100644 (file)
@@ -257,7 +257,7 @@ static int nau7802_read_poll(struct iio_dev *indio_dev,
        /*
         * Because there is actually only one ADC for both channels, we have to
         * wait for enough conversions to happen before getting a significant
-        * value when changing channels and the values are far appart.
+        * value when changing channels and the values are far apart.
         */
        do {
                ret = i2c_smbus_read_byte_data(st->client, NAU7802_REG_PUCTRL);
index c8283873cdee676a287b2661f04556197a9ef239..ddabb9600d4626301b0a0a46318af8a9f39ac4d6 100644 (file)
@@ -38,7 +38,7 @@ struct npcm_adc {
         * read access from userspace. Reading a raw value requires a sequence
         * of register writes, then a wait for a event and finally a register
         * read, during which userspace could issue another read request.
-        * This lock protects a read access from ocurring before another one
+        * This lock protects a read access from occurring before another one
         * has finished.
         */
        struct mutex lock;
index a0227b57f23883034f84ac2ada3d4f9319e5047d..bce7185953ecbbe4419d3155a2f12c8c1bbc78cd 100644 (file)
@@ -856,7 +856,7 @@ static ssize_t pac1921_format_scale_avail(const int (*const scales_tbl)[2],
 /*
  * Read available scales for a specific channel
  *
- * NOTE: using extended info insted of iio.read_avail() because access to
+ * NOTE: using extended info instead of iio.read_avail() because access to
  * current scales must be locked as they depend on shunt resistor which may
  * change runtime. Caller of iio.read_avail() would access the table unlocked
  * instead.
index 3f433064618e471046033ef3c52d34f6d7f1319c..3aea12e9d4fbbb207b564e048024e32542ecdcd8 100644 (file)
@@ -105,7 +105,7 @@ struct palmas_gpadc_thresholds {
  *             of register writes, then a wait for a completion callback,
  *             and finally a register read, during which userspace could issue
  *             another read request. This lock protects a read access from
- *             ocurring before another one has finished.
+ *             occurring before another one has finished.
  *
  * This is the palmas_gpadc structure to store run-time information
  * and pointers for this driver instance.
index fc0452749b7925a27b90fd2f98355ad8c250685e..40d00bd0cc9ddea39be5d5a7657a37a748fd38c5 100644 (file)
@@ -75,7 +75,7 @@
 
 /*
  * The high limit, low limit and last measurement result are each stored in
- * 2 consequtive registers. 4 bits are in the high bits of the first register
+ * 2 consecutive registers. 4 bits are in the high bits of the first register
  * and 8 bits in the next register.
  *
  * These macros return the address of the first reg for the given channel.
@@ -962,7 +962,7 @@ static int bd79124_hw_init(struct bd79124_data *data)
        if (ret)
                return ret;
 
-       /* Enable writing the measured values to the regsters */
+       /* Enable writing the measured values to the registers */
        ret = regmap_set_bits(data->map, BD79124_REG_GEN_CFG,
                              BD79124_MSK_STATS_EN);
        if (ret)
index 50b0a607baeb7e0a2973e129969c077968dc46b7..91995489bb1c623a32da075bc5cd445a2a2cd4f6 100644 (file)
@@ -82,7 +82,7 @@ struct spear_adc_state {
         * of register writes, then a wait for a completion callback,
         * and finally a register read, during which userspace could issue
         * another read request. This lock protects a read access from
-        * ocurring before another one has finished.
+        * occurring before another one has finished.
         */
        struct mutex lock;
        u32 current_clk;
index e39a4c0db25eaa3a79c657e8652a8187ed672c31..a42d82d61cb850b61bd656454614559a7d66350b 100644 (file)
@@ -227,7 +227,7 @@ static int stm32h7_adc_clk_sel(struct platform_device *pdev,
        if (priv->aclk) {
                /*
                 * Asynchronous clock modes (e.g. ckmode == 0)
-                * From spec: PLL output musn't exceed max rate
+                * From spec: PLL output mustn't exceed max rate
                 */
                rate = clk_get_rate(priv->aclk);
                if (!rate) {
index 2d7f88459c7ceddcf13485dfd6ca6373367ba2ba..46106200bb862c1dcef73754d46042c41e12a283 100644 (file)
@@ -1662,7 +1662,7 @@ static irqreturn_t stm32_adc_threaded_isr(int irq, void *data)
                /*
                 * Clear ovr bit to avoid subsequent calls to IRQ handler.
                 * This requires to stop ADC first. OVR bit state in ISR,
-                * is propaged to CSR register by hardware.
+                * is propagated to CSR register by hardware.
                 */
                adc->cfg->stop_conv(indio_dev);
                stm32_adc_irq_clear(indio_dev, regs->isr_ovr.mask);
index e4dfe76e636267253adab2a32b6fa541b494d6f0..861c14da75addceeba196bb9c963313afa7f2907 100644 (file)
@@ -55,7 +55,7 @@ struct sun20i_gpadc_iio {
         * of register writes, then a wait for a completion callback,
         * and finally a register read, during which userspace could issue
         * another read request. This lock protects a read access from
-        * ocurring before another one has finished.
+        * occurring before another one has finished.
         */
        struct mutex            lock;
 };
index fe3b31ec976ef00ad0a8ba0ea52ac868b3cd5c53..f0274cd749731d071ef00e9983e868f1dc2807fc 100644 (file)
@@ -252,7 +252,7 @@ static const struct s16_fract twl4030_divider_ratios[16] = {
        {5, 11},        /* CHANNEL 15 */
 };
 
-/* Conversion table from -3 to 55 degrees Celcius */
+/* Conversion table from -3 to 55 degrees Celsius */
 static int twl4030_therm_tbl[] = {
        30800,  29500,  28300,  27100,
        26000,  24900,  23900,  22900,  22000,  21100,  20300,  19400,  18700,
index 3ac774ebf678478b9bdc83f702c3a5c9e05c36bd..7810d6b2b6683de870875b2056d4f98ac165e576 100644 (file)
@@ -416,7 +416,7 @@ static u8 twl6032_channel_to_reg(int channel)
 {
        /*
         * for any prior chosen channel, when the conversion is ready
-        * the result is avalable in GPCH0_LSB, GPCH0_MSB.
+        * the result is available in GPCH0_LSB, GPCH0_MSB.
         */
 
        return TWL6032_GPADC_GPCH0_LSB;