mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
leds: bcm63138/cros_ec: Move MODULE_DEVICE_TABLE next to the table itself
By convention MODULE_DEVICE_TABLE() immediately follows the ID table it exports, because this is easier to read and verify. It also makes more sense since #ifdef for ACPI or OF could hide both of them. Most of the privers already have this correctly placed, so adjust the missing ones. No functional impact. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Acked-by: Thomas Weißschuh <linux@weissschuh.net> # leds-cros_ec.c Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://patch.msgid.link/20260505102846.186219-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
committed by
Lee Jones
parent
f0a66563aa
commit
a6ec318b16
@@ -296,6 +296,7 @@ static const struct of_device_id bcm63138_leds_of_match_table[] = {
|
||||
{ .compatible = "brcm,bcm63138-leds", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, bcm63138_leds_of_match_table);
|
||||
|
||||
static struct platform_driver bcm63138_leds_driver = {
|
||||
.probe = bcm63138_leds_probe,
|
||||
@@ -310,4 +311,3 @@ module_platform_driver(bcm63138_leds_driver);
|
||||
MODULE_AUTHOR("Rafał Miłecki");
|
||||
MODULE_DESCRIPTION("Broadcom BCM63138 SoC LED driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DEVICE_TABLE(of, bcm63138_leds_of_match_table);
|
||||
|
||||
@@ -249,6 +249,7 @@ static const struct platform_device_id cros_ec_led_id[] = {
|
||||
{ "cros-ec-led", 0 },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, cros_ec_led_id);
|
||||
|
||||
static struct platform_driver cros_ec_led_driver = {
|
||||
.driver.name = "cros-ec-led",
|
||||
@@ -257,7 +258,6 @@ static struct platform_driver cros_ec_led_driver = {
|
||||
};
|
||||
module_platform_driver(cros_ec_led_driver);
|
||||
|
||||
MODULE_DEVICE_TABLE(platform, cros_ec_led_id);
|
||||
MODULE_DESCRIPTION("ChromeOS EC LED Driver");
|
||||
MODULE_AUTHOR("Thomas Weißschuh <linux@weissschuh.net");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
Reference in New Issue
Block a user