Return -ENOSYS instead of -EPERM for input_ff_allocate() and
input_ff_register() when INPUT_FF_EFFECTS is disabled.
Signed-off-by: Anssi Hannula <[email protected]>
---
---
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)
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]