lkml.org 
[lkml]   [2006]   [Jun]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 01 Jun 2006 22:02:30 +0300
FromAnssi Hannula <>
Subjectinput: return -ENOSYS for registering functions when ff is disabled
Return -ENOSYS instead of -EPERM for input_ff_allocate() and
input_ff_register() when INPUT_FF_EFFECTS is disabled.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>

------
 include/linux/input.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.17-rc4-git12/include/linux/input.h
===================================================================
--- linux-2.6.17-rc4-git12.orig/include/linux/input.h	2006-06-01 18:45:58.000000000 +0300
+++ linux-2.6.17-rc4-git12/include/linux/input.h	2006-06-01 18:51:06.000000000 +0300
@@ -1059,12 +1059,12 @@ int input_ff_event(struct input_dev *dev
 #else
 static inline int input_ff_allocate(struct input_dev *dev)
 {
-	return -EPERM;
+	return -ENOSYS;
 }
 static inline int input_ff_register(struct input_dev *dev,
 				    struct ff_driver *driver)
 {
-	return -EPERM;
+	return -ENOSYS;
 }
 static inline int input_ff_upload(struct input_dev *dev,
 				  struct ff_effect *effect, struct file *file)
\
 
 \ /
  Last update: 2006-06-01 19:05    [from the cache]
©2003-2008