Skip to contentSkip to conversation

drivers/input/: make some functions static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 31, 2006 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/input/: make some functions static

This patch makes some needlessly global functions static.

---

 drivers/input/joystick/twidjoy.c  |    4 ++--
 drivers/input/touchscreen/mk712.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/input/joystick/twidjoy.c renamed from drivers/input/joystick/twidjoy.c.old +2 -2
@@ -265,13 +265,13 @@
  * The functions for inserting/removing us as a module.
  */
 
-int __init twidjoy_init(void)
+static int __init twidjoy_init(void)
 {
 	serio_register_driver(&twidjoy_drv);
 	return 0;
 }
 
-void __exit twidjoy_exit(void)
+static void __exit twidjoy_exit(void)
 {
 	serio_unregister_driver(&twidjoy_drv);
 }
drivers/input/touchscreen/mk712.c renamed from drivers/input/touchscreen/mk712.c.old +1 -1
@@ -154,7 +154,7 @@
 	spin_unlock_irqrestore(&mk712_lock, flags);
 }
 
-int __init mk712_init(void)
+static int __init mk712_init(void)
 {
 	int err;
 
maintainer
#1 lore raw
Quoted 2 lines · Adrian Bunk

This patch makes some needlessly global functions static.

I applied your earlier version of the patch about 2 days ago ;) Will push it out to Linus soon.

Thank you Adrian.

--
Dmitry