From: Daniel Mack Date: Tue, 14 Jul 2009 05:22:49 +0000 (-0700) Subject: Input: fix EVIOCGNAME/JSIOCGNAME regression X-Git-Tag: v2.6.31-rc4~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f936601471d1454dacbd3b2a961fd4d883090aeb;p=pandora-kernel.git Input: fix EVIOCGNAME/JSIOCGNAME regression Commit 3d5cb60e ("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 Signed-off-by: Daniel Mack Reviewed-by: Thadeu Lima de Souza Cascardo Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed