platform/x86: asus-wmi: Make kbd_rgb_mode_groups statis
PATCH 1/1 platform/x86: asus-wmi: Make kbd_rgb_mode_groups statis
kbd_rgb_mode_groups is only used inside asus-wmi.c, make it static.
Reported-by kernel test robot <[email protected]>
Signed-off-by Hans de Goede <[email protected]>
--- drivers/platform/x86/asus-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-wmi.c +1 -1
@@ -835,7 +835,7 @@ static const struct attribute_group kbd_rgb_state_group = { .attrs = kbd_rgb_state_attrs, }; -const struct attribute_group *kbd_rgb_mode_groups[] = { +static const struct attribute_group *kbd_rgb_mode_groups[] = {NULL ,NULL ,NULL ,
Signature · 1 line
2.36.1
Hi all,
Quoted 4 lines · Hans de Goede
kbd_rgb_mode_groupsis only used insideasus-wmi.c, make it static.Reported-by kernel test robot <[email protected]>Signed-off-by Hans de Goede <[email protected]>
I've added this to my review-hans (soon to be for-next) branch now.
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/asus-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/asus-wmi.c +1
-1@@ -835,7 +835,7 @@ static const struct attribute_group kbd_rgb_state_group = { .attrs = kbd_rgb_state_attrs, }; -const struct attribute_group *kbd_rgb_mode_groups[] = { +static const struct attribute_group *kbd_rgb_mode_groups[] = {NULL ,NULL ,NULL ,
Hi again,
Quoted 9 lines · Hans de Goede
Hi all,
Quoted 4 lines · Hans de Goede
kbd_rgb_mode_groupsis only used insideasus-wmi.c, make it static.Reported-by kernel test robot <[email protected]>Signed-off-by Hans de Goede <[email protected]>I've added this to my review-hans (soon to be for-next) branch now.
With the typo in the subject fixed.
Regards,
Hans
Quoted 17 lines
Quoted 17 lines
--- drivers/platform/x86/asus-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/asus-wmi.c +1
-1@@ -835,7 +835,7 @@ static const struct attribute_group kbd_rgb_state_group = { .attrs = kbd_rgb_state_attrs, }; -const struct attribute_group *kbd_rgb_mode_groups[] = { +static const struct attribute_group *kbd_rgb_mode_groups[] = {NULL ,NULL ,NULL ,