From: sashiko-bot@kernel.org
To: "Nora Schiffer" <nora.schiffer@ew.tq-group.com>
Cc: conor+dt@kernel.org, linux-leds@vger.kernel.org, lee@kernel.org,
robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 4/7] leds: pca995x: make output gain configurable
Date: Wed, 02 Sep 2026 12:35:22 +0000 [thread overview]
Message-ID: <20260902123522.982691F000E9@smtp.kernel.org> (raw)
In-Reply-To: <0c7e5cd44bb73d8680d30e1ae912b1cfcdab332f.1788350618.git.nora.schiffer@ew.tq-group.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The patch introduces an un-prefixed, hardware-specific Device Tree property `output-gain` that exposes a raw register value instead of using a standard physical property or a vendor prefix.
- [Medium] Mismatch between the driver fallback logic and the commit message regarding the default `output-gain` value.
- [Medium] The commit message description is not capitalized, violating the LED subsystem commit message formatting rules.
--
commit 68a1c0b2bd97402769422bdcabf4d7451b72efcb
Author: Nora Schiffer <nora.schiffer@ew.tq-group.com>
leds: pca995x: make output gain configurable
This commit makes the output gain of the pca995x LED driver configurable
via the Device Tree. It allows reading a value to adjust the LED current
for different hardware designs instead of using a hardcoded value.
> leds: pca995x: make output gain configurable
[Severity: Medium]
This isn't a bug, but the commit message subject does not follow the LED
subsystem's capitalization rules. Should the description after the prefix
be capitalized, for example "leds: pca995x: Make output gain configurable"?
> diff --git a/drivers/leds/leds-pca995x.c b/drivers/leds/leds-pca995x.c
> index 8eb9847b9709f..b069b93d39a54 100644
> --- a/drivers/leds/leds-pca995x.c
> +++ b/drivers/leds/leds-pca995x.c
[ ... ]
> @@ -153,6 +154,11 @@ static int pca995x_probe(struct i2c_client *client)
>
> i2c_set_clientdata(client, chip);
>
> + if (device_property_read_u32(dev, "output-gain", &iref))
[Severity: Medium]
Does introducing the un-prefixed "output-gain" property pollute the global
Device Tree namespace? Should this use a standard physical property or a
vendor prefix instead, to avoid long-term ABI maintenance debt?
> + iref = PCA995X_IREFALL_HALF_CFG;
[Severity: Medium]
The commit message explicitly claims the default output gain value was
hardcoded to 128. However, PCA995X_IREFALL_HALF_CFG is used here as the
fallback, which evaluates to 127. Is this mismatch between the commit
message and the implemented logic intended?
--
Sashiko AI review · https://sashiko.dev/#/patchset/6d3600f99c77c31166f0b6a5ccfb7f518b53c4c9.1788350618.git.nora.schiffer@ew.tq-group.com?part=4
next prev parent reply other threads:[~2026-09-02 12:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 12:22 [PATCH 1/7] dt-bindings: leds: pca995x: describe reset-gpios property Nora Schiffer
2026-09-02 12:22 ` [PATCH 2/7] dt-bindings: leds: pca995x: describe output-gain property Nora Schiffer
2026-09-02 12:31 ` sashiko-bot
2026-09-02 13:10 ` Nora Schiffer
2026-09-03 8:34 ` Lee Jones
2026-09-03 13:09 ` Krzysztof Kozlowski
2026-09-02 12:22 ` [PATCH 3/7] leds: pca995x: add support for reset GPIO Nora Schiffer
2026-09-02 12:41 ` sashiko-bot
2026-09-02 12:22 ` [PATCH 4/7] leds: pca995x: make output gain configurable Nora Schiffer
2026-09-02 12:35 ` sashiko-bot [this message]
2026-09-02 12:22 ` [PATCH 5/7] leds: pca995x: add sysfs files for error reporting Nora Schiffer
2026-09-02 12:40 ` sashiko-bot
2026-09-02 12:22 ` [PATCH 6/7] leds: pca995x: do not use full on LED mode Nora Schiffer
2026-09-02 12:39 ` sashiko-bot
2026-09-02 12:22 ` [PATCH 7/7] leds: pca995x: add support for group brightness control Nora Schiffer
2026-09-02 12:43 ` sashiko-bot
2026-09-02 12:37 ` [PATCH 1/7] dt-bindings: leds: pca995x: describe reset-gpios property sashiko-bot
2026-09-02 16:16 ` Lee Jones
2026-09-03 6:42 ` Nora Schiffer
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=20260902123522.982691F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=nora.schiffer@ew.tq-group.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox