Linux LED subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Vishnu Saini" <vishnu.saini@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH 4/7] leds: qcom-lpg: Add PM7550 PWM compatible
Date: Fri, 27 Nov 2026 08:56:31 +0000	[thread overview]
Message-ID: <sashiko-outbox-236928@kernel.org> (raw)
In-Reply-To: <20261127-eliza_disp_all-v1-4-a18be7f65fd4@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] leds: qcom-lpg: redundant and unsorted qcom,pm7550-pwm entry in
  lpg_of_table
--

commit 6c2a39f2e9b5bda877898f0d505a3b83ecc1cbd3
Author: Vishnu Saini <vishnu.saini@oss.qualcomm.com>

leds: qcom-lpg: Add PM7550 PWM compatible

This commit adds the "qcom,pm7550-pwm" compatible string to lpg_of_table[]
using pm8350c_pwm_data.

> diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c
> index 98e39e03b9a15..6c9cbc75bbfb3 100644
> --- a/drivers/leds/rgb/leds-qcom-lpg.c
> +++ b/drivers/leds/rgb/leds-qcom-lpg.c
> @@ -1827,6 +1827,7 @@ static const struct of_device_id lpg_of_table[] = {
>  	{ .compatible = "qcom,pm660l-lpg", .data = &pm660l_lpg_data },
>  	{ .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data },
>  	{ .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data },
> +	{ .compatible = "qcom,pm7550-pwm", .data = &pm8350c_pwm_data },
>  	{ .compatible = "qcom,pm8350c-pwm", .data = &pm8350c_pwm_data },
>  	{ .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data },
>  	{ .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data },

[Severity: Low]
Is this entry in lpg_of_table[] needed when the binding already requires
"qcom,pm8350c-pwm" as a fallback compatible?

Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml {
    ...
      - items:
          - enum:
              - qcom,pm7550-pwm
              - qcom,pm8550-pwm
              - qcom,pmh0101-pwm
          - const: qcom,pm8350c-pwm
    ...
}

Matching on the "qcom,pm8350c-pwm" fallback already binds the device to
pm8350c_pwm_data, which is why the other fallback-paired compatibles in
the binding (such as "qcom,pm8550-pwm" and "qcom,pmh0101-pwm") are not
listed in lpg_of_table[].  Also, if this entry is kept, "qcom,pm7550-pwm"
is out of alphabetical order after "qcom,pm8150l-lpg".

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-eliza_disp_all-v1-0-a18be7f65fd4@oss.qualcomm.com?part=4

  reply	other threads:[~2026-11-27  8:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  8:49 [PATCH 0/7] arm64: dts: qcom: eliza-evk: Add display support Vishnu Saini
2026-11-27  8:49 ` [PATCH 1/7] arm64: dts: qcom: eliza-evk: Enable HDMI output Vishnu Saini
2026-11-27  8:49 ` [PATCH 2/7] arm64: dts: qcom: eliza-evk: Add DLC0697 DSI0 overlay Vishnu Saini
2026-11-27  9:01   ` sashiko-bot
2026-11-27  8:49 ` [PATCH 3/7] dt-bindings: leds: qcom-lpg: Add PM7550 PWM compatible Vishnu Saini
2026-11-27  8:49 ` [PATCH 4/7] " Vishnu Saini
2026-11-27  8:56   ` sashiko-bot [this message]
2026-11-27  8:49 ` [PATCH 5/7] arm64: dts: qcom: eliza-evk: Add AUO G133HAN01 LVDS overlay Vishnu Saini
2026-11-27  8:49 ` [PATCH 6/7] arm64: dts: qcom: eliza-evk: Add RPi 7-inch DSI0 overlay Vishnu Saini
2026-11-27  9:01   ` sashiko-bot
2026-11-27  8:49 ` [PATCH 7/7] arm64: dts: qcom: eliza-evk: Add Waveshare 8-inch " Vishnu Saini
2026-11-27  9:07   ` sashiko-bot
2026-11-27  9:07 ` [PATCH 0/7] arm64: dts: qcom: eliza-evk: Add display support sashiko-bot

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=sashiko-outbox-236928@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=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vishnu.saini@oss.qualcomm.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