Skip to contentSkip to conversation

drivers/usb/input/: proper prototypes

PATCH New Adrian Bunk 1 participant 1 message Mar 25, 2006 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/usb/input/: proper prototypes

This patch adds proper prototypes in a header file for some global functions.

---

 drivers/usb/input/hid-ff.c |    6 ------
 drivers/usb/input/hid.h    |    5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)
drivers/usb/input/hid.h renamed from drivers/usb/input/hid.h.old +5 -0
@@ -533,3 +533,8 @@
 		return hid->ff_event(hid, input, type, code, value);
 	return -ENOSYS;
 }
+
+int hid_lgff_init(struct hid_device* hid);
+int hid_tmff_init(struct hid_device* hid);
+int hid_pid_init(struct hid_device* hid);
+
drivers/usb/input/hid-ff.c renamed from drivers/usb/input/hid-ff.c.old +0 -6
@@ -34,12 +34,6 @@
 
 #include "hid.h"
 
-/* Drivers' initializing functions */
-extern int hid_lgff_init(struct hid_device* hid);
-extern int hid_lg3d_init(struct hid_device* hid);
-extern int hid_pid_init(struct hid_device* hid);
-extern int hid_tmff_init(struct hid_device* hid);
-
 /*
  * This table contains pointers to initializers. To add support for new
  * devices, you need to add the USB vendor and product ids here.