iio: fix spelling mistakes in comments
Subsystems (13)
v2 cover iio: fix spelling mistakes in comments
This series fixes spelling mistakes in comments across several IIO subsystems to improve readability and code consistency.
v2:
- Split original patch into 6 commits
- Fixed commit message formatting and typos
- Added necessary tags in commits
- Added more fixes then previous
Shi Hao (6):
iio: accel: fix spelling mistakes in comments
iio: adc: fix spelling mistakes in comments
iio: amplifiers: fix spelling mistake in comment
iio: cdc: fix spelling mistakes in comments
iio: chemical: fix spelling mistake in comment
iio: common: fix spelling mistakes in comments
drivers/iio/accel/adis16201.c | 2 +- drivers/iio/accel/adis16209.c | 2 +- drivers/iio/adc/ad4030.c | 2 +- drivers/iio/adc/ad4170-4.c | 6 +++--- drivers/iio/adc/ad7380.c | 2 +- drivers/iio/adc/ad7887.c | 2 +- drivers/iio/adc/ad7923.c | 4 ++-- drivers/iio/adc/at91_adc.c | 4 ++-- drivers/iio/adc/max1363.c | 2 +- drivers/iio/adc/mcp3564.c | 2 +- drivers/iio/adc/men_z188_adc.c | 2 +- drivers/iio/adc/npcm_adc.c | 2 +- drivers/iio/adc/palmas_gpadc.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 4 ++-- drivers/iio/adc/spear_adc.c | 2 +- drivers/iio/adc/stm32-adc-core.c | 2 +- drivers/iio/adc/stm32-adc.c | 2 +- drivers/iio/adc/sun20i-gpadc-iio.c | 2 +- drivers/iio/adc/ti_am335x_adc.c | 2 +- drivers/iio/adc/twl4030-madc.c | 2 +- drivers/iio/adc/twl6030-gpadc.c | 2 +- drivers/iio/amplifiers/ada4250.c | 2 +- drivers/iio/cdc/ad7150.c | 2 +- drivers/iio/cdc/ad7746.c | 2 +- drivers/iio/chemical/bme680_core.c | 2 +- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 2 +- drivers/iio/common/inv_sensors/inv_sensors_timestamp.c | 2 +- drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 2 +- 29 files changed, 34 insertions(+), 34 deletions(-)
--
2.53.0
PATCH v2 1/6 iio: accel: fix spelling mistakes in comments
Fix incorrect spelling in comments
- celcius -> celsius
--- drivers/iio/accel/adis16201.c | 2 +- drivers/iio/accel/adis16209.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/iio/accel/adis16201.c +0 -0
@@ -147,7 +147,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev,
/*
* The raw ADC value is 1278 when the temperature
* is 25 degrees and the scale factor per milli
- * degree celcius is -470.
+ * degree celsius is -470.
*/ *val = 25000 / -470 - 1278; return IIO_VAL_INT;
drivers/iio/accel/adis16209.c +0 -0
@@ -186,7 +186,7 @@ static int adis16209_read_raw(struct iio_dev *indio_dev,
/*
* The raw ADC value is 0x4FE when the temperature
* is 45 degrees and the scale factor per milli
- * degree celcius is -470.
+ * degree celsius is -470.
*/ *val = 25000 / -470 - 0x4FE; return IIO_VAL_INT;
--
2.53.0
Jonathan Cameron
maintainerRe: [PATCH v2 1/6] iio: accel: fix spelling mistakes in comments
On Sat, 7 Mar 2026 16:17:00 +0530
Shi Hao <[email protected]> wrote:
Where it is just one spelling, good to say that in the patch title.
iio: accel: Fixing spelling and capitalisation of Celsius.
Quoted 2 lines
Fix incorrect spelling in comments
- celcius -> celsius
I'm going to put my fussy hat on give we are fixing this sort of thin. Should be "degree Celsius"
Reflects that it is named after Anders Celsius
Thanks for tidying this up.
Jonathan
Quoted 35 lines
Signed-off-by Shi Hao <[email protected]>--- drivers/iio/accel/adis16201.c | 2 +- drivers/iio/accel/adis16209.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/iio/accel/adis16201.c +1
-1@@ -147,7 +147,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev,/* * The raw ADC value is 1278 when the temperature * is 25 degrees and the scale factor per milli -* degree celcius is -470. +* degree celsius is -470. */ *val =25000 /-470 -1278 ;return IIO_VAL_INT ;drivers/iio/accel/adis16209.c +1
-2@@ -186,7 +186,7 @@ static int adis16209_read_raw(struct iio_dev *indio_dev,/* * The raw ADC value is 0x4FE when the temperature * is 45 degrees and the scale factor per milli -* degree celcius is -470. +* degree celsius is -470. */ *val =25000 /-470 -0x4FE ;return IIO_VAL_INT ; --2.53.0
PATCH v2 2/6 iio: adc: fix spelling mistakes in comments
In reply to Shi HaoThere were several spelling mistakes in comments such as mulitiply, referrence, ocurring, consequtive, and celcius, as well as other occurrences. Fix these spelling mistakes to improve code readability and consistency.
--- drivers/iio/adc/ad4030.c | 2 +- drivers/iio/adc/ad4170-4.c | 6 +++--- drivers/iio/adc/ad7380.c | 2 +- drivers/iio/adc/ad7887.c | 2 +- drivers/iio/adc/ad7923.c | 4 ++-- drivers/iio/adc/at91_adc.c | 4 ++-- drivers/iio/adc/max1363.c | 2 +- drivers/iio/adc/mcp3564.c | 2 +- drivers/iio/adc/men_z188_adc.c | 2 +- drivers/iio/adc/npcm_adc.c | 2 +- drivers/iio/adc/palmas_gpadc.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 4 ++-- drivers/iio/adc/spear_adc.c | 2 +- drivers/iio/adc/stm32-adc-core.c | 2 +- drivers/iio/adc/stm32-adc.c | 2 +- drivers/iio/adc/sun20i-gpadc-iio.c | 2 +- drivers/iio/adc/ti_am335x_adc.c | 2 +- drivers/iio/adc/twl4030-madc.c | 2 +- drivers/iio/adc/twl6030-gpadc.c | 2 +- 19 files changed, 24 insertions(+), 24 deletions(-)
drivers/iio/adc/ad4030.c +0 -0
@@ -623,7 +623,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++) {drivers/iio/adc/ad4170-4.c +3 -3
@@ -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 */
drivers/iio/adc/ad7380.c +0 -0
@@ -1850,7 +1850,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)
drivers/iio/adc/ad7887.c +0 -0
@@ -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 setting */
return spi_sync(st->spi, &st->msg[AD7887_CH0]);
}
drivers/iio/adc/ad7923.c +1 -1
@@ -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
drivers/iio/adc/at91_adc.c +1 -1
@@ -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;
drivers/iio/adc/max1363.c +1 -1
@@ -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
drivers/iio/adc/mcp3564.c +1 -1
@@ -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
drivers/iio/adc/men_z188_adc.c +1 -1
@@ -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 <[email protected]>
drivers/iio/adc/npcm_adc.c +0 -0
@@ -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;
drivers/iio/adc/palmas_gpadc.c +1 -1
@@ -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.
drivers/iio/adc/rohm-bd79124.c +1 -1
@@ -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)
drivers/iio/adc/spear_adc.c +0 -0
@@ -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;
drivers/iio/adc/stm32-adc-core.c +0 -0
@@ -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) {drivers/iio/adc/stm32-adc.c +0 -0
@@ -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);
drivers/iio/adc/sun20i-gpadc-iio.c +0 -0
@@ -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;
};
drivers/iio/adc/ti_am335x_adc.c +0 -0
@@ -116,7 +116,7 @@ static void tiadc_step_config(struct iio_dev *indio_dev)
* Steps forwards i.e. from 0 towards 16 are used by ADC
* depending on number of input lines needed.
* Channel would represent which analog input
- * needs to be given to ADC to digitalize data.
+ * needs to be given to ADC to digitize data.
*/
for (i = 0; i < adc_dev->channels; i++) {
int chan;drivers/iio/adc/twl4030-madc.c +0 -0
@@ -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,drivers/iio/adc/twl6030-gpadc.c +0 -0
@@ -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;
--
2.53.0
Jonathan Cameron
maintainerRe: [PATCH v2 2/6] iio: adc: fix spelling mistakes in comments
Quoted 1 line · On Sat, 7 Mar 2026 16:17:01 +0530 Shi Hao <[email protected]> wrote:
There were several spelling mistakes in comments such
Just noticed you have a short wrap to commit descriptions.
Usual (not particularly well documented) convention is up to 75 chars for these to allow for default git settings indenting them a few spaces.
Otherwise this looks good to me.
thanks,
Jonathan
Quoted 27 lines
as mulitiply, referrence, ocurring, consequtive, and celcius, as well as other occurrences. Fix these spelling mistakes to improve code readability and consistency.
Signed-off-by Shi Hao <[email protected]>--- drivers/iio/adc/ad4030.c | 2 +- drivers/iio/adc/ad4170-4.c | 6 +++--- drivers/iio/adc/ad7380.c | 2 +- drivers/iio/adc/ad7887.c | 2 +- drivers/iio/adc/ad7923.c | 4 ++-- drivers/iio/adc/at91_adc.c | 4 ++-- drivers/iio/adc/max1363.c | 2 +- drivers/iio/adc/mcp3564.c | 2 +- drivers/iio/adc/men_z188_adc.c | 2 +- drivers/iio/adc/npcm_adc.c | 2 +- drivers/iio/adc/palmas_gpadc.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 4 ++-- drivers/iio/adc/spear_adc.c | 2 +- drivers/iio/adc/stm32-adc-core.c | 2 +- drivers/iio/adc/stm32-adc.c | 2 +- drivers/iio/adc/sun20i-gpadc-iio.c | 2 +- drivers/iio/adc/ti_am335x_adc.c | 2 +- drivers/iio/adc/twl4030-madc.c | 2 +- drivers/iio/adc/twl6030-gpadc.c | 2 +- 19 files changed, 24 insertions(+), 24 deletions(-)
PATCH v2 3/6 iio: amplifiers: fix spelling mistake in comment
In reply to Shi Haofix incorrect spelling in comment
- Curren -> Current
--- drivers/iio/amplifiers/ada4250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/amplifiers/ada4250.c +0 -0
@@ -109,7 +109,7 @@ static int ada4250_set_offset_uv(struct iio_dev *indio_dev,
/* * Compute Range and Voltage per LSB for the Sensor Offset Calibration
- * Example of computation for Range 1 and Range 2 (Curren Bias Set = AVDD):
+ * Example of computation for Range 1 and Range 2 (Current Bias Set = AVDD):
* Range 1 Range 2
* Gain | Max Vos(mV) | LSB(mV) | Max Vos(mV) | LSB(mV) |
* 2 | X1*127 | X1=0.126(AVDD-1) | X1*3*127 | X1*3 |
--
2.53.0
Jonathan Cameron
maintainerRe: [PATCH v2 3/6] iio: amplifiers: fix spelling mistake in comment
Quoted 3 lines · On Sat, 7 Mar 2026 16:17:02 +0530 Shi Hao <[email protected]> wrote:
fix incorrect spelling in comment
- Curren -> Current
As with the 1st patch, as it's just one thing good to say what it is in the patch title as well as here.
Thanks,
Jonathan
Quoted 21 lines
Signed-off-by Shi Hao <[email protected]>--- drivers/iio/amplifiers/ada4250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/amplifiers/ada4250.c +1
-2@@ -109,7 +109,7 @@ static int ada4250_set_offset_uv(struct iio_dev *indio_dev,/* * Compute Range and Voltage per LSB for the Sensor Offset Calibration -* Example of computation for Range 1 and Range 2 (Curren Bias Set = AVDD): +* Example of computation for Range 1 and Range 2 (Current Bias Set = AVDD): * Range 1 Range 2 * Gain | Max Vos(mV) | LSB(mV) | Max Vos(mV) | LSB(mV) | * 2 | X1*127 | X1=0.126(AVDD-1) | X1*3*127 | X1*3 | -- 2.53.0
PATCH v2 4/6 iio: cdc: fix spelling mistakes in comments
In reply to Shi Haofix incorrect spelling in comments
- becaue -> because
- reenable -> re-enable
--- drivers/iio/cdc/ad7150.c | 2 +- drivers/iio/cdc/ad7746.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/iio/cdc/ad7150.c +0 -0
@@ -306,7 +306,7 @@ static int ad7150_write_event_config(struct iio_dev *indio_dev,
dir); if (ret) goto error_ret; - /* reenable any irq's we disabled whilst changing mode */ + /* re-enable any irq's we disabled whilst changing mode */ enable_irq(chip->interrupts[0]); enable_irq(chip->interrupts[1]); }
drivers/iio/cdc/ad7746.c +0 -0
@@ -606,7 +606,7 @@ static int ad7746_read_channel(struct iio_dev *indio_dev,
return ret; /* - * Offset applied internally becaue the _offset userspace interface is + * Offset applied internally because the _offset userspace interface is * needed for the CAP DACs which apply a controllable offset. */ *val = get_unaligned_be24(data) - 0x800000;
--
2.53.0
Re: [PATCH v2 4/6] iio: cdc: fix spelling mistakes in comments
Quoted 4 lines · Shi Hao
fix incorrect spelling in comments
- becaue -> because
- reenable -> re-enable
...
Review
Quoted 2 lines
(quoted diff) +1
-1- /* reenable any irq's we disabled whilst changing mode */ + /* re-enable any irq's we disabled whilst changing mode */
While at it, capitalise IRQ, but I think the entire "irq's" is confusing looking at the code.
Quoted 2 lines
enable_irq(chip->interrupts[0]); enable_irq(chip->interrupts[1]);
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH v2 5/6 iio: chemical: fix spelling mistake in comment
In reply to Shi Haofix incorrect spelling in comment
- insuffient -> insufficient
--- drivers/iio/chemical/bme680_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/chemical/bme680_core.c +0 -0
@@ -807,7 +807,7 @@ static int bme680_read_gas(struct bme680_data *data, int *comp_gas_res)
adc_gas_res = FIELD_GET(BME680_ADC_GAS_RES, gas_regs_val); /*
- * occurs if either the gas heating duration was insuffient
+ * occurs if either the gas heating duration was insufficient
* to reach the target heater temperature or the target
* heater temperature was too high for the heater sink to
* reach.
--
2.53.0
Jonathan Cameron
maintainerRe: [PATCH v2 5/6] iio: chemical: fix spelling mistake in comment
Quoted 3 lines · On Sat, 7 Mar 2026 16:17:04 +0530 Shi Hao <[email protected]> wrote:
fix incorrect spelling in comment
- insuffient -> insufficient
Similar to earlier. Say this in the patch description given it's just the one thing.
Quoted 21 lines
Signed-off-by Shi Hao <[email protected]>--- drivers/iio/chemical/bme680_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/chemical/bme680_core.c +1
-2@@ -807,7 +807,7 @@ static int bme680_read_gas(struct bme680_data *data, int *comp_gas_res) adc_gas_res =FIELD_GET (BME680_ADC_GAS_RES , gas_regs_val);/* -* occurs if either the gas heating duration was insuffient +* occurs if either the gas heating duration was insufficient * to reach the target heater temperature or the target * heater temperature was too high for the heater sink to * reach. -- 2.53.0
PATCH v2 6/6 iio: common: fix spelling mistakes in comments
In reply to Shi Haofix incorrect spelling in comments
- exepects -> expects
- fuction -> function
- theoritical -> theoretical
- appopriate -> appropriate
--- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 2 +- drivers/iio/common/inv_sensors/inv_sensors_timestamp.c | 2 +- drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +0 -0
@@ -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);drivers/iio/common/hid-sensors/hid-sensor-attributes.c +1 -1
@@ -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]
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c +0 -0
@@ -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;drivers/iio/common/ms_sensors/ms_sensors_i2c.c +1 -1
@@ -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.
--
2.53.0
Jonathan Cameron
maintainerRe: [PATCH v2 6/6] iio: common: fix spelling mistakes in comments
Quoted 8 lines · On Sat, 7 Mar 2026 16:17:05 +0530 Shi Hao <[email protected]> wrote:
fix incorrect spelling in comments
- exepects -> expects
- fuction -> function
- theoritical -> theoretical
- appopriate -> appropriateSigned-off-by Shi Hao <[email protected]>
This one (and patch 4 that I don't think I replied to) looks good to me but we aren't in a rush given where we are in the cycle so I'll wait for v3.
Leave it a few days before sending another version though as you may get reviews from others + they may disagree with me :)
Jonathan
Quoted 61 lines
--- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 2 +- drivers/iio/common/inv_sensors/inv_sensors_timestamp.c | 2 +- drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +1
-1@@ -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 );drivers/iio/common/hid-sensors/hid-sensor-attributes.c +1
-1@@ -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] drivers/iio/common/inv_sensors/inv_sensors_timestamp.c +1
-1@@ -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;drivers/iio/common/ms_sensors/ms_sensors_i2c.c +1
-2@@ -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. -- 2.53.0
Matti Vaittinen
maintainerQuoted 41 lines · Shi Hao
This series fixes spelling mistakes in comments across several IIO subsystems to improve readability and code consistency.
v2:
- Split original patch into 6 commits
- Fixed commit message formatting and typos
- Added necessary tags in commits
- Added more fixes then previousShi Hao (6):
iio: accel: fix spelling mistakes in comments
iio: adc: fix spelling mistakes in comments
iio: amplifiers: fix spelling mistake in comment
iio: cdc: fix spelling mistakes in comments
iio: chemical: fix spelling mistake in comment
iio: common: fix spelling mistakes in commentsdrivers/iio/accel/adis16201.c | 2 +- drivers/iio/accel/adis16209.c | 2 +- drivers/iio/adc/ad4030.c | 2 +- drivers/iio/adc/ad4170-4.c | 6 +++--- drivers/iio/adc/ad7380.c | 2 +- drivers/iio/adc/ad7887.c | 2 +- drivers/iio/adc/ad7923.c | 4 ++-- drivers/iio/adc/at91_adc.c | 4 ++-- drivers/iio/adc/max1363.c | 2 +- drivers/iio/adc/mcp3564.c | 2 +- drivers/iio/adc/men_z188_adc.c | 2 +- drivers/iio/adc/npcm_adc.c | 2 +- drivers/iio/adc/palmas_gpadc.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 4 ++-- drivers/iio/adc/spear_adc.c | 2 +- drivers/iio/adc/stm32-adc-core.c | 2 +- drivers/iio/adc/stm32-adc.c | 2 +- drivers/iio/adc/sun20i-gpadc-iio.c | 2 +- drivers/iio/adc/ti_am335x_adc.c | 2 +- drivers/iio/adc/twl4030-madc.c | 2 +- drivers/iio/adc/twl6030-gpadc.c | 2 +- drivers/iio/amplifiers/ada4250.c | 2 +-
Quoted 8 lines
drivers/iio/cdc/ad7150.c | 2 +- drivers/iio/cdc/ad7746.c | 2 +- drivers/iio/chemical/bme680_core.c | 2 +- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 2 +- drivers/iio/common/inv_sensors/inv_sensors_timestamp.c | 2 +- drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 2 +- 29 files changed, 34 insertions(+), 34 deletions(-)
Changes to ROHM stuff looks good to me. Thanks!
Signature · 6 lines
--- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~