[2.6 patch] drivers/usb/input/: proper prototypes

From: Adrian Bunk
Date: Sat Mar 25 2006 - 12:00:43 EST


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

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

drivers/usb/input/hid-ff.c | 6 ------
drivers/usb/input/hid.h | 5 +++++
2 files changed, 5 insertions(+), 6 deletions(-)

--- linux-2.6.16-mm1-full/drivers/usb/input/hid.h.old 2006-03-25 15:42:13.000000000 +0100
+++ linux-2.6.16-mm1-full/drivers/usb/input/hid.h 2006-03-25 15:43:38.000000000 +0100
@@ -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);
+
--- linux-2.6.16-mm1-full/drivers/usb/input/hid-ff.c.old 2006-03-25 15:43:47.000000000 +0100
+++ linux-2.6.16-mm1-full/drivers/usb/input/hid-ff.c 2006-03-25 15:44:09.000000000 +0100
@@ -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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/