From: Krzysztof Kozlowski <krzk@kernel.org>
To: Steffen Trumtrar <s.trumtrar@pengutronix.de>,
Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Steffen Trumtrar <kernel@pengutronix.de>
Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] leds: add support for TI LP5860 LED driver chip
Date: Fri, 21 Feb 2025 09:42:41 +0100 [thread overview]
Message-ID: <abe231fb-6891-4008-92a9-9c3525ea0bcf@kernel.org> (raw)
In-Reply-To: <20250220-v6-14-topic-ti-lp5860-v1-2-42874bdc7513@pengutronix.de>
On 20/02/2025 13:57, Steffen Trumtrar wrote:
> This adds support for the Texas Instruments LP5860 LED driver chip
> via SPI interfaces.
>
Please do not use "This commit/patch/change", but imperative mood. See
longer explanation here:
https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95
....
> +
> + return 0;
> +}
> +
> +int lp5860_device_init(struct lp5860 *lp)
> +{
> + int ret;
> +
> + dev_set_drvdata(lp->dev, lp);
> +
> + ret = lp5860_enable_disable(lp, 1);
> + if (ret)
> + return ret;
> +
> + ret = regmap_update_bits(lp->regmap, LP5860_DEV_INITIAL,
> + LP5860_MODE_MASK,
> + LP5860_MODE_1 << LP5860_MODE_OFFSET);
> + if (ret < 0)
> + return ret;
> +
> + ret = sysfs_create_group(&lp->dev->kobj, &lp5860_group);
Where is ABI documentation?
> + if (ret)
> + return ret;
> +
> + return lp5860_probe_dt(lp);
> +}
...
> +static const struct of_device_id lp5860_of_match[] = {
> + { .compatible = "ti,lp5860" },
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, lp5860_of_match);
> +
> +static struct spi_driver lp5860_driver = {
> + .driver = {
> + .name = "lp5860",
> + .of_match_table = of_match_ptr(lp5860_of_match),
Drop of_match_ptr, you have a warning here.
> + },
> + .probe = lp5860_probe,
> + .remove = lp5860_remove,
> +};
> +
> +module_spi_driver(lp5860_driver);
> +
> +MODULE_DESCRIPTION("TI leds lp5860");
> +MODULE_AUTHOR("Steffen Trumtrar <kernel@pengutronix.de>");
> +MODULE_LICENSE("GPL");
> +MODULE_ALIAS("spi:leds-lp5860");
You should not need MODULE_ALIAS() in normal cases. If you need it,
usually it means your device ID table is wrong (e.g. misses either
entries or MODULE_DEVICE_TABLE()). MODULE_ALIAS() is not a substitute
for incomplete ID table.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-21 8:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 12:57 [PATCH 0/2] LED: Add basic LP5860 LED matrix driver Steffen Trumtrar
2025-02-20 12:57 ` [PATCH 1/2] dt-bindings: leds: add lp5860 LED controller Steffen Trumtrar
2025-02-20 17:03 ` Conor Dooley
2025-02-20 12:57 ` [PATCH 2/2] leds: add support for TI LP5860 LED driver chip Steffen Trumtrar
2025-02-21 8:42 ` Krzysztof Kozlowski [this message]
2025-02-20 14:11 ` [PATCH 0/2] LED: Add basic LP5860 LED matrix driver Steffen Trumtrar
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=abe231fb-6891-4008-92a9-9c3525ea0bcf@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=robh@kernel.org \
--cc=s.trumtrar@pengutronix.de \
/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