bus: ac97: clean up whitespace and move EXPORT_SYMBOLs
PATCH 1/1 bus: ac97: clean up whitespace and move EXPORT_SYMBOLs
Clean up an unnecessary space in a conditional statement and move EXPORT_SYMBOL_GPL(snd_ac97_reset) and EXPORT_SYMBOL(ac97_bus_type) to immediately follow their respective definitions.
This complies with the Linux kernel coding style convention which prefers exports to be placed next to the exported symbol for better code locality and readability.
--- sound/ac97_bus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
sound/ac97_bus.c +1 -3
@@ -73,7 +73,6 @@ int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id,if (snd_ac97_check_id (ac97, id, id_mask))return 0 ; -return -ENODEV ; }EXPORT_SYMBOL_GPL (snd_ac97_reset);
@@ -81,6 +80,7 @@ EXPORT_SYMBOL_GPL(snd_ac97_reset);const struct bus_type ac97_bus_type = { .name ="ac97" , }; +EXPORT_SYMBOL (ac97_bus_type);static int __init ac97_bus_init (void ) {
@@ -96,7 +96,5 @@ static void __exit ac97_bus_exit(void)module_exit (ac97_bus_exit); -EXPORT_SYMBOL (ac97_bus_type); -MODULE_DESCRIPTION ("Legacy AC97 bus interface" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.54.0
Takashi Iwai
AppliedQuoted 10 lines · Lucas Poupeau
Clean up an unnecessary space in a conditional statement and move
EXPORT_SYMBOL_GPL(snd_ac97_reset)andEXPORT_SYMBOL(ac97_bus_type)to immediately follow their respective definitions.This complies with the Linux kernel coding style convention which prefers exports to be placed next to the exported symbol for better code locality and readability.
Signed-off-by Lucas Poupeau <[email protected]>
Applied to for-next branch. Thanks.
Takashi