[PATCH v3 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 v3 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
- irq's -> IRQs

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..eaa65c4c026a 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 IRQs we disabled while 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 v3 4/6] iio: cdc: fix spelling mistakes in comments
Posted by Andy Shevchenko 1 month ago
On Mon, Mar 09, 2026 at 04:15:11PM +0530, Shi Hao wrote:
> fix incorrect spelling in comments
> 
> - becaue -> because
> - reenable -> re-enable
> - irq's -> IRQs

Same comment as per patch 6.

...

> -		/* reenable any irq's we disabled whilst changing mode */
> +		/* re-enable any IRQs we disabled while changing mode */

'whilst' is okay, no?

-- 
With Best Regards,
Andy Shevchenko
Re: [PATCH v3 4/6] iio: cdc: fix spelling mistakes in comments
Posted by Jonathan Cameron 1 month ago
On Mon, 9 Mar 2026 13:43:32 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Mon, Mar 09, 2026 at 04:15:11PM +0530, Shi Hao wrote:
> > fix incorrect spelling in comments
> > 
> > - becaue -> because
> > - reenable -> re-enable
> > - irq's -> IRQs  
> 
> Same comment as per patch 6.
> 
> ...
> 
> > -		/* reenable any irq's we disabled whilst changing mode */
> > +		/* re-enable any IRQs we disabled while changing mode */  
> 
> 'whilst' is okay, no?

There are bonus points for British English ;)


>