[PATCH v2 4/6] iio: cdc: fix spelling mistakes in comments

Shi Hao posted 6 patches 1 month ago
There is a newer version of this series
[PATCH v2 4/6] iio: cdc: fix spelling mistakes in comments
Posted by Shi Hao 1 month ago
fix incorrect spelling in comments

- becaue -> because
- reenable -> re-enable

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
---
 drivers/iio/cdc/ad7150.c | 2 +-
 drivers/iio/cdc/ad7746.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/cdc/ad7150.c b/drivers/iio/cdc/ad7150.c
index 427d32e398b3..274fb143dedb 100644
--- a/drivers/iio/cdc/ad7150.c
+++ b/drivers/iio/cdc/ad7150.c
@@ -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]);
	}
diff --git a/drivers/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c
index 8a306d55c72a..cb97e3c978d8 100644
--- a/drivers/iio/cdc/ad7746.c
+++ b/drivers/iio/cdc/ad7746.c
@@ -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
Posted by Andy Shevchenko 1 month ago
On Sat, Mar 07, 2026 at 04:17:03PM +0530, Shi Hao wrote:
> fix incorrect spelling in comments
> 
> - becaue -> because
> - reenable -> re-enable

...

> -		/* 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.

> 		enable_irq(chip->interrupts[0]);
> 		enable_irq(chip->interrupts[1]);

-- 
With Best Regards,
Andy Shevchenko