HID: roccat: Fix an error message when reading more data from bin attributes
authorStefan Achatz <erazor_de@users.sourceforge.net>
Thu, 6 Jan 2011 08:00:41 +0000 (09:00 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Jan 2011 10:28:53 +0000 (11:28 +0100)
commitfd82be6c0a359fc706a805a49b1f167af21e63ea
treef2a8a29ed69630ce0a36639e7a221d7c6a91de4e
parente68cc603b063416c85f3e408184219fb71d4a9ff
HID: roccat: Fix an error message when reading more data from bin attributes

Using cat or something to read from binary attributes would try to do an
additional read with offset equal to filesize. This resulted in an invalid
attribute error. This is fixed by giving the right answer instead of EINVAL.

Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-roccat-koneplus.c