]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: adc: Fix typos in comments across various files
authorYu Jiaoliang <yujiaoliang@vivo.com>
Thu, 26 Sep 2024 03:43:54 +0000 (11:43 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2024 11:09:15 +0000 (12:09 +0100)
This commit fixes several typographical errors in comments within
the drivers/iio/adc directory. No functional changes are made.

Detected using codespell.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Link: https://patch.msgid.link/20240926034411.3482986-1-yujiaoliang@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7091r-base.h
drivers/iio/adc/ad7606.h
drivers/iio/adc/ad7887.c
drivers/iio/adc/ad_sigma_delta.c
drivers/iio/adc/max34408.c
drivers/iio/adc/pac1921.c
drivers/iio/adc/palmas_gpadc.c
drivers/iio/adc/ti-ads1298.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/adc/twl4030-madc.c
drivers/iio/adc/xilinx-xadc-events.c

index 696bf7a897bb51de16477b5b802919d1ae21124c..092ddea0f395c08d4fb24b6d68a6a4a031531475 100644 (file)
@@ -65,7 +65,7 @@ struct ad7091r_state {
        struct regulator *vref;
        const struct ad7091r_chip_info *chip_info;
        enum ad7091r_mode mode;
-       struct mutex lock; /*lock to prevent concurent reads */
+       struct mutex lock; /*lock to prevent concurrent reads */
        __be16 tx_buf __aligned(IIO_DMA_MINALIGN);
        __be16 rx_buf;
 };
index 14ee75aa225b0dbd8f4a843a30cdc6bd725cc50d..fc05a4afa3b86d874f6bfd63188d5687f0b3b650 100644 (file)
@@ -75,7 +75,7 @@ typedef int (*ad7606_scale_setup_cb_t)(struct ad7606_state *st,
  *                     oversampling ratios.
  * @oversampling_num   number of elements stored in oversampling_avail array
  * @os_req_reset       some devices require a reset to update oversampling
- * @init_delay_ms      required delay in miliseconds for initialization
+ * @init_delay_ms      required delay in milliseconds for initialization
  *                     after a restart
  */
 struct ad7606_chip_info {
index b301da9b88b132ec73c9a051c25f3b11cc8b96ea..69add1dc4b5388ed0a18196f248412725eb324a7 100644 (file)
@@ -41,7 +41,7 @@ enum ad7887_channels {
 };
 
 /**
- * struct ad7887_chip_info - chip specifc information
+ * struct ad7887_chip_info - chip specific information
  * @int_vref_mv:       the internal reference voltage
  * @channels:          channels specification
  * @num_channels:      number of channels
index e2bed2d648f22bcb6d1527d2867dc960e6807c9b..e30c7f8fcbec32f4ab6e5bbe7f3f111d42178c26 100644 (file)
@@ -469,7 +469,7 @@ static irqreturn_t ad_sd_trigger_handler(int irq, void *p)
                /*
                 * Data array after transfer will look like (if status is appended):
                 * data[] = { [0][sample][sample][sample][status] }
-                * Keeping the first byte 0 shifts the status postion by 1 byte to the right.
+                * Keeping the first byte 0 shifts the status position by 1 byte to the right.
                 */
                status_pos = reg_size + 1;
 
@@ -656,7 +656,7 @@ int ad_sd_init(struct ad_sigma_delta *sigma_delta, struct iio_dev *indio_dev,
        sigma_delta->spi = spi;
        sigma_delta->info = info;
 
-       /* If the field is unset in ad_sigma_delta_info, asume there can only be 1 slot. */
+       /* If the field is unset in ad_sigma_delta_info, assume there can only be 1 slot. */
        if (!info->num_slots)
                sigma_delta->num_slots = 1;
        else
index ffec22be2d593343c8cec1891fa2c6c6b3f18019..971e6e5dee9b1587bb823193d392bbe191bfd939 100644 (file)
@@ -161,7 +161,7 @@ static int max34408_read_raw(struct iio_dev *indio_dev,
                return IIO_VAL_INT;
        case IIO_CHAN_INFO_SCALE:
                /*
-                * calcluate current for 8bit ADC with Rsense
+                * calculate current for 8bit ADC with Rsense
                 * value.
                 * 10 mV * 1000 / Rsense uOhm = max current
                 * (max current * adc val * 1000) / (2^8 - 1) mA
index 4c2a1c07bc399028f0334885fc9cd4552d5892b1..c49175f2c0b79a838f78b12209846bb5b867176b 100644 (file)
@@ -1077,7 +1077,7 @@ static int pac1921_init(struct pac1921_priv *priv)
        /*
         * Init control register:
         * - VPower free run integration mode
-        * - OUT pin full scale range: 3V (HW detault)
+        * - OUT pin full scale range: 3V (HW default)
         * - no timeout, no sleep, no sleep override, no recalc (HW defaults)
         */
        val = FIELD_PREP(PAC1921_CONTROL_MXSL_MASK,
index 203cbbc707198e4f254244f2bd1d79f8f99f9a0b..67d567ee21b439e3f296c239c68d8ed6f1723b59 100644 (file)
@@ -456,7 +456,7 @@ static int palmas_gpadc_get_calibrated_code(struct palmas_gpadc *adc,
  *   raw high threshold = (ideal threshold + INL) * gain error + offset error
  *
  * The gain error include both gain error, as specified in the datasheet, and
- * the gain error drift. These paramenters vary depending on device and whether
+ * the gain error drift. These parameters vary depending on device and whether
  * the channel is calibrated (trimmed) or not.
  */
 static int palmas_gpadc_threshold_with_tolerance(int val, const int INL,
index 13cb32125eef96b9b1b8ec979b1bb12b3397cc5e..a6432ef1fa903b2d8f4e816732dc3892329cb817 100644 (file)
@@ -294,7 +294,7 @@ static int ads1298_get_scale(struct ads1298_private *priv,
                if (ret)
                        return ret;
 
-               /* Refererence in millivolts */
+               /* Reference in millivolts */
                *val = regval & ADS1298_MASK_CONFIG3_VREF_4V ? 4000 : 2400;
        }
 
index 426e3c9f88a16ee6c60f85fef6ef6a95a9ee97e1..d362eba6cd7c0471696b729cf9932406635f5094 100644 (file)
@@ -494,7 +494,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
        /*
         * We check the complete FIFO. We programmed just one entry but in case
         * something went wrong we left empty handed (-EAGAIN previously) and
-        * then the value apeared somehow in the FIFO we would have two entries.
+        * then the value appeared somehow in the FIFO we would have two entries.
         * Therefore we read every item and keep only the latest version of the
         * requested channel.
         */
index 0253064fadec844bf59af43189313fb5e7e5eb3a..563478e9c5eb74ce43daef90ec6c18c7e889bc9c 100644 (file)
@@ -248,7 +248,7 @@ static const struct s16_fract twl4030_divider_ratios[16] = {
        {15, 100},      /* CHANNEL 11 */
        {1, 4},         /* CHANNEL 12 */
        {1, 1},         /* CHANNEL 13 Reserved channels */
-       {1, 1},         /* CHANNEL 14 Reseved channels */
+       {1, 1},         /* CHANNEL 14 Reserved channels */
        {5, 11},        /* CHANNEL 15 */
 };
 
index 1bd375fb10e085276edb95ae5ce6d6a987821460..90f62377c34d97fcf3695103edc4d8e9a17d0a83 100644 (file)
@@ -220,7 +220,7 @@ int xadc_write_event_value(struct iio_dev *indio_dev,
                /*
                 * Since we store the hysteresis as relative (to the threshold)
                 * value, but the hardware expects an absolute value we need to
-                * recalcualte this value whenever the hysteresis or the
+                * recalculate this value whenever the hysteresis or the
                 * threshold changes.
                 */
                if (xadc->threshold[offset] < xadc->temp_hysteresis)