]> git.baikalelectronics.ru Git - kernel.git/commit
Input: fix EVIOCGNAME/JSIOCGNAME regression
authorDaniel Mack <daniel@caiaq.de>
Tue, 14 Jul 2009 05:22:49 +0000 (22:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 14 Jul 2009 05:24:29 +0000 (22:24 -0700)
commite3ec3395a12aea5801f264c31ae1238017530248
tree5ec6bf1a77ede0082484b8c7bd6ffbb438c3f84f
parent352f85b89e522d9aee607ce82c4d2a68cdb75302
Input: fix EVIOCGNAME/JSIOCGNAME regression

Commit fdd5e10b ("Input: simplify name handling for certain input
handles") introduced a regression for the EVIOCGNAME/JSIOCGNAME
ioctl.

Before this, patch, the platform device's name was given back to
userspace which was good to identify devices. After this patch, the
device is ("event%d", minor) which is not descriptive at all.

This fixes the behaviour by taking dev->name.

Reported-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Reviewed-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
drivers/input/joydev.c