Skip to contentSkip to conversation

leds: max77650: add MODULE_ALIAS()

PATCH Applied Bartosz Golaszewski 3 participants 3 messages Jul 3, 2019 – Jul 15, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: max77650: add MODULE_ALIAS()

From: Bartosz Golaszewski <[email protected]>

Define a MODULE_ALIAS() in the LED sub-driver for max77650 so that the appropriate module gets loaded together with the core mfd driver.

---
 drivers/leds/leds-max77650.c | 1 +
 1 file changed, 1 insertion(+)
drivers/leds/leds-max77650.c +1 -0
index 6b74ce9cac12..70166cd3816c 100644
@@ -145,3 +145,4 @@ module_platform_driver(max77650_led_driver);
 MODULE_DESCRIPTION("MAXIM 77650/77651 LED driver");
 MODULE_AUTHOR("Bartosz Golaszewski <[email protected]>");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:max77650-led");
Signature · 1 line
2.21.0
#1 lore raw
Quoted 7 lines

From: Bartosz Golaszewski <[email protected]>

Define a MODULE_ALIAS() in the LED sub-driver for max77650 so that the appropriate module gets loaded together with the core mfd driver.

ACK.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
In reply to Bartosz Golaszewski

Hi Bartosz,

Thank you for the patch.

Quoted 16 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Define a MODULE_ALIAS() in the LED sub-driver for max77650 so that the appropriate module gets loaded together with the core mfd driver.

---
 drivers/leds/leds-max77650.c | 1 +
 1 file changed, 1 insertion(+)
drivers/leds/leds-max77650.c +0 -0
index 6b74ce9cac12..70166cd3816c 100644

drivers/leds/leds-max77650.c module_platform_driver(max77650_led_driver); · line 148

Quoted 4 lines
drivers/leds/leds-max77650.c +1 -0
@@ -145,3 +145,4 @@ module_platform_driver(max77650_led_driver);
 MODULE_DESCRIPTION("MAXIM 77650/77651 LED driver");
 MODULE_AUTHOR("Bartosz Golaszewski <[email protected]>");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:max77650-led");

Applied to for-5.4 branch of linux-leds.git.

Signature · 2 lines
Best regards,
Jacek Anaszewski