From: sashiko-bot@kernel.org
To: "Esben Haabendal" <esben@geanix.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v9 07/10] iio: accel: mma8452: Add comment block for struct mma8452_data
Date: Wed, 16 Sep 2026 08:14:44 +0000 [thread overview]
Message-ID: <20260916081445.3F9311F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260916-mma8452-open-drain-v9-7-0dd24fa2f3d7@geanix.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] doc: typo in mma8452_data kernel-doc comment
--
commit 984d9aedf92a8a6dbe4c1ae78737aa03bd9dfc22
Author: Esben Haabendal <esben@geanix.com>
iio: accel: mma8452: Add comment block for struct mma8452_data
The struct mma8452_data is central for this driver, and it makes sense to
have a description of the fields in it to make it easier to work with the
driver.
> diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
> index b70bc86381280..223bef4f7baf8 100644
> --- a/drivers/iio/accel/mma8452.c
> +++ b/drivers/iio/accel/mma8452.c
> @@ -104,6 +104,21 @@
>
> #define MMA8452_AUTO_SUSPEND_DELAY_MS 2000
>
> +/**
> + * struct mma8452_data - IIO device private data structure
> + * @client: the I2C client object
> + * @lock: mutex for synchronziation of register
[Severity: Low]
This isn't a bug, but there's a typo here (synchronziation).
> + * read-modify-write sequences and holding chip in
> + * STANDBY mode while writing to registers
> + * @orientation: mounting matrix, flipped axis etc.
> + * @chip_info: chip specific data
> + * @regs: reference to voltage regulators
> + * @buffer: triggered buffer
> + * @sleep_val: time in ms to sleep while waiting for drdy
> + * @ctrl_reg1: CTRL_REG1 register shadow value
> + * @data_cfg: DATA_CFG register shadow value
> + * @open_drain: true for irq pin in open-drain mode
> + */
> struct mma8452_data {
> struct i2c_client *client;
> struct mutex lock;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260916-mma8452-open-drain-v9-0-0dd24fa2f3d7@geanix.com?part=7
next prev parent reply other threads:[~2026-09-16 8:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 8:07 [PATCH v9 00/10] io: accel: mma8452: Allow open drain interrupt pin configuration Esben Haabendal
2026-09-16 8:07 ` [PATCH v9 01/10] dt-bindings: iio: accel: mma8452: Add drive-open-drain Esben Haabendal
2026-09-16 8:07 ` [PATCH v9 02/10] iio: accel: mma8452: Fix use-after-free bug in error error path Esben Haabendal
2026-09-16 8:07 ` [PATCH v9 03/10] iio: accel: mma8452: Fix runtime PM bugs in mma8452_read() Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 04/10] iio: accel: mma8452: Optimize struct mma8452_data member orders Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 05/10] iio: accel: mma8452: Only apply trigger type when not set by firmware Esben Haabendal
2026-09-16 8:20 ` sashiko-bot
2026-09-16 8:08 ` [PATCH v9 06/10] iio: accel: mma8452: Fix unintended comment indent Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 07/10] iio: accel: mma8452: Add comment block for struct mma8452_data Esben Haabendal
2026-09-16 8:14 ` sashiko-bot [this message]
2026-09-21 0:52 ` Jonathan Cameron
2026-09-21 5:30 ` Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 08/10] iio: accel: mma8452: Allow open drain interrupt pin configuration Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 09/10] iio: accel: mma8452: Use proper error code when missing device model Esben Haabendal
2026-09-16 8:08 ` [PATCH v9 10/10] iio: accel: mma8452: Support interrupt sharing Esben Haabendal
2026-09-16 8:31 ` sashiko-bot
2026-09-17 6:40 ` Esben Haabendal
2026-09-21 0:51 ` Jonathan Cameron
2026-09-21 5:35 ` Esben Haabendal
2026-09-22 0:18 ` 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=20260916081445.3F9311F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=esben@geanix.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.