* [PATCH] leds: pca995x: Fix MODULE_DEVICE_TABLE for OF
@ 2023-08-09 12:53 Marek Vasut
2023-08-15 17:30 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2023-08-09 12:53 UTC (permalink / raw)
To: linux-leds
Cc: Marek Vasut, Conor Dooley, Isai Gaspar, Krzysztof Kozlowski,
Lee Jones, Pavel Machek, Rob Herring, devicetree
Fix copy-paste error in MODULE_DEVICE_TABLE() for the OF table,
use the 'of' first parameter instead of duplicate 'i2c'.
Fixes: ee4e80b2962e ("leds: pca995x: Add support for PCA995X chips")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Isai Gaspar <isaiezequiel.gaspar@nxp.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Lee Jones <lee@kernel.org>
Cc: Marek Vasut <marex@denx.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-leds@vger.kernel.org
---
NOTE: This should be added on top of leds-lj or squashed into the driver patch
---
drivers/leds/leds-pca995x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-pca995x.c b/drivers/leds/leds-pca995x.c
index 4c387e628ba8f..9b7667a03c390 100644
--- a/drivers/leds/leds-pca995x.c
+++ b/drivers/leds/leds-pca995x.c
@@ -181,7 +181,7 @@ static const struct of_device_id pca995x_of_match[] = {
{ .compatible = "nxp,pca9955b", .data = (void *)1 /* B-type chip */ },
{},
};
-MODULE_DEVICE_TABLE(i2c, pca995x_of_match);
+MODULE_DEVICE_TABLE(of, pca995x_of_match);
static struct i2c_driver pca995x_driver = {
.driver = {
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] leds: pca995x: Fix MODULE_DEVICE_TABLE for OF
2023-08-09 12:53 [PATCH] leds: pca995x: Fix MODULE_DEVICE_TABLE for OF Marek Vasut
@ 2023-08-15 17:30 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2023-08-15 17:30 UTC (permalink / raw)
To: Marek Vasut
Cc: linux-leds, Conor Dooley, Isai Gaspar, Krzysztof Kozlowski,
Pavel Machek, Rob Herring, devicetree
On Wed, 09 Aug 2023, Marek Vasut wrote:
> Fix copy-paste error in MODULE_DEVICE_TABLE() for the OF table,
> use the 'of' first parameter instead of duplicate 'i2c'.
>
> Fixes: ee4e80b2962e ("leds: pca995x: Add support for PCA995X chips")
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Isai Gaspar <isaiezequiel.gaspar@nxp.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: linux-leds@vger.kernel.org
> ---
> NOTE: This should be added on top of leds-lj or squashed into the driver patch
> ---
> drivers/leds/leds-pca995x.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-15 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 12:53 [PATCH] leds: pca995x: Fix MODULE_DEVICE_TABLE for OF Marek Vasut
2023-08-15 17:30 ` Lee Jones
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).