HID: corsair: Convert to use module_hid_driver
PATCH 1/1 HID: corsair: Convert to use module_hid_driver
Signed-off-by Axel Lin <[email protected]>
--- drivers/hid/hid-corsair.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
drivers/hid/hid-corsair.c +1 -12
@@ -655,18 +655,7 @@ static struct hid_driver corsair_driver = { .input_mapping = corsair_input_mapping, }; -static int __init corsair_init (void ) -{ -return hid_register_driver (&corsair_driver); -} - -static void corsair_exit (void ) -{ -hid_unregister_driver (&corsair_driver); -} - -module_init (corsair_init); -module_exit (corsair_exit); +module_hid_driver (corsair_driver);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Clement Vuchener" );
Signature · 1 line
2.1.4
2015-12-16 9:56 GMT+01:00 Axel Lin <[email protected]>:
Quoted 1 line
Signed-off-by Axel Lin <[email protected]>
I am not sure if I am required to ack trivial patches, but no one answered.
I have no preference toward the old or new code. If it is the prefered way to do that, I have no problem with it.
Acked-by Clément Vuchener <[email protected]>
Quoted 29 lines
--- drivers/hid/hid-corsair.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)drivers/hid/hid-corsair.c +1
-13@@ -655,18 +655,7 @@ static struct hid_driver corsair_driver = { .input_mapping = corsair_input_mapping, }; -static int __init corsair_init (void ) -{ -return hid_register_driver (&corsair_driver); -} - -static void corsair_exit (void ) -{ -hid_unregister_driver (&corsair_driver); -} - -module_init (corsair_init); -module_exit (corsair_exit); +module_hid_driver (corsair_driver);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Clement Vuchener" ); --
Quoted 4 lines
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 19 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- drivers/hid/hid-corsair.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)drivers/hid/hid-corsair.c +0
-6@@ -655,18 +655,7 @@ static struct hid_driver corsair_driver = { .input_mapping = corsair_input_mapping, }; -static int __init corsair_init (void ) -{ -return hid_register_driver (&corsair_driver); -} - -static void corsair_exit (void )
drivers/hid/hid-corsair.c static struct hid_driver corsair_driver = { · line 661
Quoted 10 lines
drivers/hid/hid-corsair.c +1
-6-{ -hid_unregister_driver (&corsair_driver); -} - -module_init (corsair_init); -module_exit (corsair_exit); +module_hid_driver (corsair_driver);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Clement Vuchener" );
Applied to for-4.5/upstream.
Signature · 2 lines
Jiri Kosina SUSE Labs