From: Bevan Weiss <bevan.weiss@gmail.com>
To: Lee Jones <lee@kernel.org>
Cc: Pavel Machek <pavel@kernel.org>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/1] leds: syscon: Add tristate option
Date: Thu, 19 Mar 2026 22:33:35 +1100 [thread overview]
Message-ID: <20260319223335.5e1913a4@openwrt-virtual-machine> (raw)
In-Reply-To: <20260319101327.GH554736@google.com>
On Thu, 19 Mar 2026 10:13:27 +0000
Lee Jones <lee@kernel.org> wrote:
> > Additional changes:
> > - (int)(struct platform_device *pdev) => void return
>
> Please rephrase into a human parseable sentence.
Thanks, will do.
> > + led_classdev_unregister(&sled->cdev);
>
> The driver uses devm_led_classdev_register() in probe, which
> automatically handles unregistering the LED class device when the
> driver is detached. Calling it here manually will result in a
> double-unregister.
My oversight, will fix.
> > + /* Turn it off */
>
> Turn what off?
>
> > + regmap_update_bits(sled->map, sled->offset, sled->mask,
> > 0);
>
> If 0 was defined, as it should be, then you can drop the comment.
This is carry over from the original source, when it was originally
modularised. I'll update the comment to explicitly mention that it's
the LED which is turned off on module remove.
> > +MODULE_LICENSE("GPL");
>
> The MODULE_LICENSE() string should match the SPDX identifier at the
> top of the file.
>
Sorry, I'm not quite understanding this in the context of other files.
Most modules within the led subsystem seem to have
'GPL-2.0-or-later' as the SPDX identifier, and MODULE_LICENSE("GPL"),
as I currently have here.
Is there a different subtlety I'm missing?
e.g. leds-adp5520.c, leds-as3668.c, leds-blinkm.c
Perhaps MODULE_LICENSE("GPL v2+")? although I don't see similar
anywhere in the kernel.
I'd expect MODULE_LICENSE("GPL v2") to be for 'GPL-2.0-only' licenses.
Thanks and regards,
Bevan Weiss
next prev parent reply other threads:[~2026-03-19 11:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 1:58 [PATCH v2 0/1] leds: syscon: Add tristate option Bevan Weiss
2026-03-08 1:58 ` [PATCH v2 1/1] " Bevan Weiss
2026-03-19 10:13 ` Lee Jones
2026-03-19 11:33 ` Bevan Weiss [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-08 1:56 [PATCH v2 0/1] " Bevan Weiss
2026-03-08 1:56 ` [PATCH v2 1/1] " Bevan Weiss
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=20260319223335.5e1913a4@openwrt-virtual-machine \
--to=bevan.weiss@gmail.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox