From: Kyle Swenson <kyle.swenson@est.tech>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
kyle.swenson@est.tech, pavel@ucw.cz, robh+dt@kernel.org,
krzk+dt@kernel.org
Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] leds: aw21024: Add support for Awinic's AW21024
Date: Tue, 17 May 2022 12:36:29 -0600 [thread overview]
Message-ID: <YoPrLbGBnSuYgEzF@p620> (raw)
In-Reply-To: <178182e1-edd1-9f27-6441-a0a9fabde567@linaro.org>
On Tue, May 17, 2022 at 11:11:37AM +0200, Krzysztof Kozlowski wrote:
> On 13/05/2022 21:04, Kyle Swenson wrote:
> > The Awinic AW21024 LED controller is a 24-channel RGB LED controller.
> > Each LED on the controller can be controlled individually or grouped
> > with other LEDs on the controller to form a multi-color LED. Arbitrary
> > combinations of individual and grouped LED control should be possible.
> >
> > Signed-off-by: Kyle Swenson <kyle.swenson@est.tech>
>
> Thank you for your patch. There is something to discuss/improve.
>
> > +
> > +static const struct i2c_device_id aw21024_id[] = {
> > + { "aw21024", 0 }, /* 24 Channel */
> > + { }
> > +};
> > +MODULE_DEVICE_TABLE(i2c, aw21024_id);
> > +
> > +static const struct of_device_id of_aw21024_leds_match[] = {
> > + { .compatible = "awinic,aw21024", },
> > + {},
> > +};
> > +MODULE_DEVICE_TABLE(of, of_aw21024_leds_match);
> > +
> > +static struct i2c_driver aw21024_driver = {
> > + .driver = {
> > + .name = "aw21024",
> > + .of_match_table = of_match_ptr(of_aw21024_leds_match),
>
> of_match_ptr causes this being unused. kbuild robot probably pointed
> this out... if not - of_match_ptr goes with maybe_unused. You need both
> or none, depending on intended usage.
>
Ah, yes, the kbuild robot did point this out to me, and I had planned on
fixing by adding 'depends on OF' to the Kconfig. Perhaps that isn't
correct or complete (or even relevant)?
I'll do some investigating and determine if I need to use of_match_ptr
or not and I'll fix it either by removing it or adding maybe_unused in
the next version.
> > + },
> > + .probe_new = aw21024_probe,
> > + .remove = aw21024_remove,
> > + .id_table = aw21024_id,
>
> Why other places are indented but this not?
Sorry, it should be. My editor was configured wrong and this now looks
bad. There are a few other places in the driver that also now look bad
and I'll fix those before submitting v2.
>
>
> > +};
> > +module_i2c_driver(aw21024_driver);
> > +
> > +MODULE_AUTHOR("Kyle Swenson <kyle.swenson@est.tech>");
> > +MODULE_DESCRIPTION("Awinic AW21024 LED driver");
> > +MODULE_LICENSE("GPL");
>
>
> Best regards,
> Krzysztof
Thanks so much for taking a look at this, I really appreciate your time
and patience.
Thanks,
Kyle
next prev parent reply other threads:[~2022-05-17 18:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 19:04 [PATCH 1/2] leds: aw21024: Add support for Awinic's AW21024 Kyle Swenson
2022-05-13 19:04 ` [PATCH 2/2] dt-bindings: leds: Add aw21024 binding Kyle Swenson
2022-05-13 20:48 ` Rob Herring
2022-05-17 9:08 ` Krzysztof Kozlowski
2022-05-17 18:31 ` Kyle Swenson
2022-05-18 8:17 ` Krzysztof Kozlowski
2022-05-18 21:18 ` Kyle Swenson
2022-05-19 8:04 ` Krzysztof Kozlowski
2022-05-16 10:21 ` [PATCH 1/2] leds: aw21024: Add support for Awinic's AW21024 kernel test robot
2022-05-16 10:42 ` kernel test robot
2022-05-16 12:34 ` kernel test robot
2022-05-17 9:11 ` Krzysztof Kozlowski
2022-05-17 18:36 ` Kyle Swenson [this message]
2022-05-18 8:30 ` Krzysztof Kozlowski
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=YoPrLbGBnSuYgEzF@p620 \
--to=kyle.swenson@est.tech \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).