From: Sameeksha Sankpal <sameekshasankpal@gmail.com>
To: anshulusr@gmail.com, jic23@kernel.org
Cc: lars@metafoo.de, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sameeksha Sankpal <sameekshasankpal@gmail.com>
Subject: [PATCH] iio: light: Fix typo in variable name
Date: Fri, 3 Oct 2025 23:14:25 +0530 [thread overview]
Message-ID: <20251003174425.9135-1-sameekshasankpal@gmail.com> (raw)
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>
---
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)
--
2.43.0
next reply other threads:[~2025-10-03 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-03 17:44 Sameeksha Sankpal [this message]
2025-10-04 13:18 ` [PATCH] iio: light: Fix typo in variable name Jonathan Cameron
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=20251003174425.9135-1-sameekshasankpal@gmail.com \
--to=sameekshasankpal@gmail.com \
--cc=anshulusr@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.