projects/linux·commit fb9ac9bd

[PATCH] USB: input/: proper prototypes

fb9ac9bd · Adrian Bunk <[email protected]> · 2006-03-25 18:03:38 +01:00

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

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Commit
fb9ac9bda9aee5a42d44f4b503bdbd7c414ac201
Parents
75e2df60

Changes

2 files changed · +5 −6

FileStatusAddDelContent
drivers/usb/input/hid-ff.cmodified+0−6View file
drivers/usb/input/hid.hmodified+5−0View file

drivers/usb/input/hid-ff.c

View file
diff --git a/drivers/usb/input/hid-ff.c b/drivers/usb/input/hid-ff.c
index 72e6986..d5c91ee 100644
--- a/drivers/usb/input/hid-ff.c
+++ b/drivers/usb/input/hid-ff.c
@@ -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.

drivers/usb/input/hid.h

View file
diff --git a/drivers/usb/input/hid.h b/drivers/usb/input/hid.h
index 4e1b784..9c62837 100644
--- a/drivers/usb/input/hid.h
+++ b/drivers/usb/input/hid.h
@@ -533,3 +533,8 @@ static inline int hid_ff_event(struct hid_device *hid, struct input_dev *input,
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);
+