HID: ntrig: use input_configured() callback to set the name
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Fri, 8 Feb 2013 14:51:30 +0000 (15:51 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Feb 2013 09:16:20 +0000 (10:16 +0100)
commit1b474fe82d4eed3c909f02be82586284827c1705
tree8b3a3d2852841246addecdaacf6907f3f95110d6
parentcf5425bfcd6909f9831a00bc06ccb9a5b163766a
HID: ntrig: use input_configured() callback to set the name

The use of input_configured() allows the ntrig driver to actually
change the name of the input and its bitmask before it is added to the
input subsystem. Thus, the logs are coherents and udev catch the real
bitmask when the device is added.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ntrig.c