From: Jonathan Cameron <jic23@kernel.org>
To: Sameeksha Sankpal <sameekshasankpal@gmail.com>
Cc: anshulusr@gmail.com, lars@metafoo.de, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: light: Fix typo in variable name
Date: Sat, 4 Oct 2025 14:18:08 +0100 [thread overview]
Message-ID: <20251004141808.0a531d1e@jic23-huawei> (raw)
In-Reply-To: <20251003174425.9135-1-sameekshasankpal@gmail.com>
On Fri, 3 Oct 2025 23:14:25 +0530
Sameeksha Sankpal <sameekshasankpal@gmail.com> wrote:
> Corrected a spelling mistake in the ltr390 driver:
> 'recieve_buffer' was renamed to 'receive_buffer'.
>
> This improves code readibility without changing functionality.
>
> Signed-off-by: Sameeksha Sankpal <sameekshasankpal@gmail.com>
Applied with patch title amended to include the driver name.
Thanks,
Jonathan
> ---
> drivers/iio/light/ltr390.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/iio/light/ltr390.c b/drivers/iio/light/ltr390.c
> index df664f360903..277f40879932 100644
> --- a/drivers/iio/light/ltr390.c
> +++ b/drivers/iio/light/ltr390.c
> @@ -121,16 +121,16 @@ static int ltr390_register_read(struct ltr390_data *data, u8 register_address)
> {
> struct device *dev = &data->client->dev;
> int ret;
> - u8 recieve_buffer[3];
> + u8 receive_buffer[3];
>
> - ret = regmap_bulk_read(data->regmap, register_address, recieve_buffer,
> - sizeof(recieve_buffer));
> + ret = regmap_bulk_read(data->regmap, register_address, receive_buffer,
> + sizeof(receive_buffer));
> if (ret) {
> dev_err(dev, "failed to read measurement data");
> return ret;
> }
>
> - return get_unaligned_le24(recieve_buffer);
> + return get_unaligned_le24(receive_buffer);
> }
>
> static int ltr390_set_mode(struct ltr390_data *data, enum ltr390_mode mode)
prev parent reply other threads:[~2025-10-04 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-03 17:44 [PATCH] iio: light: Fix typo in variable name Sameeksha Sankpal
2025-10-04 13:18 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251004141808.0a531d1e@jic23-huawei \
--to=jic23@kernel.org \
--cc=anshulusr@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameekshasankpal@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).