]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: light: fix several incorrect spellings
authorShi Hao <i.shihao.999@gmail.com>
Mon, 16 Mar 2026 09:00:10 +0000 (14:30 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 19:12:14 +0000 (19:12 +0000)
Fix spelling mistakes reported by codespell.

- sesnor -> sensor
- substraction -> subtraction
- simulataneous -> simultaneous
- proccessed -> processed
- coefficents -> coefficients

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/Kconfig
drivers/iio/light/apds9160.c
drivers/iio/light/ltr390.c
drivers/iio/light/opt3001.c
drivers/iio/light/tsl2772.c

index ac1408d374c920b65d17d4cd7b1465fb206b0ad1..eff33e456c70d740f364b12d93fdc6ce7632e5da 100644 (file)
@@ -359,7 +359,7 @@ config ROHM_BU27034
        select IIO_KFIFO_BUF
        help
          Enable support for the ROHM BU27034 ambient light sensor. ROHM BU27034
-         is an ambient light sesnor with 3 channels and 3 photo diodes capable
+         is an ambient light sensor with 3 channels and 3 photo diodes capable
          of detecting a very wide range of illuminance.
          Typical application is adjusting LCD and backlight power of TVs and
          mobile phones.
index 9b8af11b7b67a6e831daff5360f8995748b69de3..3da0bdac04cf7bf39e3fb8687d709f33c3316db8 100644 (file)
@@ -620,7 +620,7 @@ static int apds9160_set_ps_gain(struct apds9160_chip *data, int val)
 
 /*
  * The PS intelligent cancellation level register allows
- * for an on-chip substraction of the ADC count caused by
+ * for an on-chip subtraction of the ADC count caused by
  * unwanted reflected light from PS ADC output.
  */
 static int apds9160_set_ps_cancellation_level(struct apds9160_chip *data,
index fc387426fa875a6508bc5dc7af612e36408618ec..f1702aca582df073915d61ca3a28f7e9be0725a9 100644 (file)
@@ -101,7 +101,7 @@ enum ltr390_meas_rate {
 struct ltr390_data {
        struct regmap *regmap;
        struct i2c_client *client;
-       /* Protects device from simulataneous reads */
+       /* Protects device from simultaneous reads */
        struct mutex lock;
        enum ltr390_mode mode;
        int gain;
index 393a3d2fbe1d7320a243d3b6720e98b90f17baca..53bc455b7bad142695d9fecc6cabb934fb3ace0c 100644 (file)
@@ -91,7 +91,7 @@ struct opt3001_chip_info {
         */
        int factor_integer;
        /*
-        * Factor used to align decimal part of proccessed value to six decimal
+        * Factor used to align decimal part of processed value to six decimal
         * places.
         */
        int factor_decimal;
index 0b171106441ab61dca6bec57867678e36f3c83d7..c8f15ba952672eabc6fc93dd789607e6a82f5356 100644 (file)
@@ -190,7 +190,7 @@ struct tsl2772_chip {
 };
 
 /*
- * Different devices require different coefficents, and these numbers were
+ * Different devices require different coefficients, and these numbers were
  * derived from the 'Lux Equation' section of the various device datasheets.
  * All of these coefficients assume a Glass Attenuation (GA) factor of 1.
  * The coefficients are multiplied by 1000 to avoid floating point operations.