Skip to contentSkip to conversation

leds: pca995x: Fix MODULE_DEVICE_TABLE for OF

PATCH Applied Marek Vasut 2 participants 2 messages Aug 9, 2023 – Aug 15, 2023 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: pca995x: Fix MODULE_DEVICE_TABLE for OF

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")

---
Cc: Conor Dooley <[email protected]>
Cc: Isai Gaspar <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
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(-)
drivers/leds/leds-pca995x.c +1 -1
index 4c387e628ba8f..9b7667a03c390 100644
@@ -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 = {
Signature · 1 line
2.40.1
maintainer Applied
#1 lore raw
Quoted 17 lines · Marek Vasut

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")

---
Cc: Conor Dooley <[email protected]>
Cc: Isai Gaspar <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
NOTE: This should be added on top of leds-lj or squashed into the driver patch

Quoted 3 lines
---
 drivers/leds/leds-pca995x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]