* [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself
@ 2026-05-05 10:27 Krzysztof Kozlowski
2026-05-06 2:50 ` Tzung-Bi Shih
2026-05-06 6:19 ` Thomas Weißschuh
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-05 10:27 UTC (permalink / raw)
To: Thomas Weißschuh, Benson Leung, Guenter Roeck,
Sebastian Reichel, chrome-platform, linux-pm, linux-kernel
Cc: Krzysztof Kozlowski
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>
---
drivers/power/supply/cros_charge-control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/supply/cros_charge-control.c b/drivers/power/supply/cros_charge-control.c
index 53e6a77e03fc..6a5e54218178 100644
--- a/drivers/power/supply/cros_charge-control.c
+++ b/drivers/power/supply/cros_charge-control.c
@@ -323,6 +323,7 @@ static const struct platform_device_id cros_chctl_id[] = {
{ "cros-charge-control", 0 },
{}
};
+MODULE_DEVICE_TABLE(platform, cros_chctl_id);
static struct platform_driver cros_chctl_driver = {
.driver.name = "cros-charge-control",
@@ -331,7 +332,6 @@ static struct platform_driver cros_chctl_driver = {
};
module_platform_driver(cros_chctl_driver);
-MODULE_DEVICE_TABLE(platform, cros_chctl_id);
MODULE_DESCRIPTION("ChromeOS EC charge control");
MODULE_AUTHOR("Thomas Weißschuh <linux@weissschuh.net>");
MODULE_LICENSE("GPL");
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 10:27 [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
@ 2026-05-06 2:50 ` Tzung-Bi Shih
2026-05-06 6:19 ` Thomas Weißschuh
1 sibling, 0 replies; 3+ messages in thread
From: Tzung-Bi Shih @ 2026-05-06 2:50 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Thomas Weißschuh, Benson Leung, Guenter Roeck,
Sebastian Reichel, chrome-platform, linux-pm, linux-kernel
On Tue, May 05, 2026 at 12:27:52PM +0200, Krzysztof Kozlowski wrote:
> 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
^ d
> the missing ones. No functional impact.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 10:27 [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
2026-05-06 2:50 ` Tzung-Bi Shih
@ 2026-05-06 6:19 ` Thomas Weißschuh
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2026-05-06 6:19 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Benson Leung, Guenter Roeck, Sebastian Reichel, chrome-platform,
linux-pm, linux-kernel
On 2026-05-05 12:27:52+0200, Krzysztof Kozlowski wrote:
> 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>
(...)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-06 6:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 10:27 [PATCH] power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
2026-05-06 2:50 ` Tzung-Bi Shih
2026-05-06 6:19 ` Thomas Weißschuh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox