]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: cros_charge-control: Move MODULE_DEVICE_TABLE next to the table itself
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 5 May 2026 10:27:52 +0000 (12:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 3 Jun 2026 21:21:45 +0000 (23:21 +0200)
commit43401898fde586bdeb73ac2c11d4f949fcba9f77
tree11ee05f1a99d57fac9a7077f70edbbe544494b0f
parent15384402c94a55b05d06a446aedd19e242367b6f
power: supply: cros_charge-control: 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>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260505102752.182089-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cros_charge-control.c