]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: common: fix spelling mistakes in comments
authorShi Hao <i.shihao.999@gmail.com>
Mon, 16 Mar 2026 09:00:19 +0000 (14:30 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 19:28:19 +0000 (19:28 +0000)
Fix spelling mistakes in comments.

- exepects -> expects
- fuction -> function
- theoritical -> theoretical
- appopriate -> appropriate
- iio -> IIO

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
drivers/iio/common/ms_sensors/ms_sensors_i2c.c

index 82cef4a124427239137038d63a9bf8a7f4a78b07..f34e2bbba2d1e6f9c82cc13a2bb9270b1e86228c 100644 (file)
@@ -106,7 +106,7 @@ static int cros_ec_sensors_read(struct iio_dev *indio_dev,
                switch (st->core.type) {
                case MOTIONSENSE_TYPE_ACCEL:
                        /*
-                        * EC returns data in g, iio exepects m/s^2.
+                        * EC returns data in g, IIO expects m/s^2.
                         * Do not use IIO_G_TO_M_S_2 to avoid precision loss.
                         */
                        *val = div_s64(val64 * 980665, 10);
index a61428bfdce372ea0511fb7c3e80f4c43f427eb4..c115a72832b2eb96ff9fd2218a0658282d2f9abf 100644 (file)
@@ -346,7 +346,7 @@ int hid_sensor_write_raw_hyst_rel_value(struct hid_sensor_common *st,
 EXPORT_SYMBOL_NS(hid_sensor_write_raw_hyst_rel_value, "IIO_HID");
 
 /*
- * This fuction applies the unit exponent to the scale.
+ * This function applies the unit exponent to the scale.
  * For example:
  * 9.806650000 ->exp:2-> val0[980]val1[665000000]
  * 9.000806000 ->exp:2-> val0[900]val1[80600000]
index 97526ba87b934e59a4fc1d090000b6eb7d33202e..e0b10366ed2bfc4ed223e0abb3124d59a60c2189 100644 (file)
@@ -154,7 +154,7 @@ void inv_sensors_timestamp_interrupt(struct inv_sensors_timestamp *ts,
                valid = inv_update_chip_period(ts, period);
        }
 
-       /* no previous data, compute theoritical value from interrupt */
+       /* no previous data, compute theoretical value from interrupt */
        if (ts->timestamp == 0) {
                /* elapsed time: sensor period * sensor samples number */
                interval = (int64_t)ts->period * (int64_t)sample_nb;
@@ -185,7 +185,7 @@ void inv_sensors_timestamp_apply_odr(struct inv_sensors_timestamp *ts,
 
        /*
         * After ODR change the time interval with the previous sample is
-        * undertermined (depends when the change occures). So we compute the
+        * undertermined (depends when the change occurs). So we compute the
         * timestamp from the current interrupt using the new FIFO period, the
         * total number of samples and the current sample numero.
         */
index 588470863681830a2a210a6c491b8a2a844d4460..1960a2ce82a8ba4895738a6cda67a6950077d272 100644 (file)
@@ -96,7 +96,7 @@ EXPORT_SYMBOL_NS(ms_sensors_read_prom_word, "IIO_MEAS_SPEC_SENSORS");
  *
  * Generic ADC conversion & read function for Measurement Specialties
  * devices.
- * The function will issue conversion command, sleep appopriate delay, and
+ * The function will issue conversion command, sleep appropriate delay, and
  * issue command to read ADC.
  *
  * Return: 0 on success, negative errno otherwise.