Skip to contentSkip to conversation

HID: roccat: Removed empty functions definitions for roccat chardev

PATCH Applied Stefan Achatz 1 participant 1 message Jan 30, 2011

Subsystems (2)
lore
Share & tools
lore

Stefan Achatz

author maintainer
#0 lore raw

PATCH 1/8 HID: roccat: Removed empty functions definitions for roccat chardev

Roccat chardev is a dependency of all device specific drivers, so the empty definitions are not needed anymore.

---
 drivers/hid/hid-roccat.h |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
drivers/hid/hid-roccat.h +0 -10
index 5784281..c739337 100644
@@ -15,18 +15,8 @@
 #include <linux/hid.h>
 #include <linux/types.h>
 
-#if defined(CONFIG_HID_ROCCAT) || defined(CONFIG_HID_ROCCAT_MODULE)
 int roccat_connect(struct class *klass, struct hid_device *hid);
 void roccat_disconnect(int minor);
 int roccat_report_event(int minor, u8 const *data, int len);
-#else
-static inline int roccat_connect(struct class *klass,
-		struct hid_device *hid) { return -1; }
-static inline void roccat_disconnect(int minor) {}
-static inline int roccat_report_event(int minor, u8 const *data, int len)
-{
-	return 0;
-}
-#endif
 
 #endif
Signature · 1 line
1.7.3.4