[PATCH v5 02/14] iio: light: fix several incorrect spellings
From: Shi Hao
Date: Mon Mar 16 2026 - 05:05:57 EST
Fix spelling mistakes reported by codespell.
- sesnor -> sensor
- substraction -> subtraction
- simulataneous -> simultaneous
- proccessed -> processed
- coefficents -> coefficients
Signed-off-by: Shi Hao <i.shihao.999@xxxxxxxxx>
---
drivers/iio/light/Kconfig | 2 +-
drivers/iio/light/apds9160.c | 2 +-
drivers/iio/light/ltr390.c | 2 +-
drivers/iio/light/opt3001.c | 2 +-
drivers/iio/light/tsl2772.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index ac1408d374c9..eff33e456c70 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -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.
diff --git a/drivers/iio/light/apds9160.c b/drivers/iio/light/apds9160.c
index 9b8af11b7b67..3da0bdac04cf 100644
--- a/drivers/iio/light/apds9160.c
+++ b/drivers/iio/light/apds9160.c
@@ -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,
diff --git a/drivers/iio/light/ltr390.c b/drivers/iio/light/ltr390.c
index fc387426fa87..f1702aca582d 100644
--- a/drivers/iio/light/ltr390.c
+++ b/drivers/iio/light/ltr390.c
@@ -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;
diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c
index 393a3d2fbe1d..53bc455b7bad 100644
--- a/drivers/iio/light/opt3001.c
+++ b/drivers/iio/light/opt3001.c
@@ -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;
diff --git a/drivers/iio/light/tsl2772.c b/drivers/iio/light/tsl2772.c
index 0b171106441a..c8f15ba95267 100644
--- a/drivers/iio/light/tsl2772.c
+++ b/drivers/iio/light/tsl2772.c
@@ -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.
--
2.53.0