]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Input: wacom - use a uniq name for the battery device
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sat, 26 Jul 2014 00:31:51 +0000 (17:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 26 Jul 2014 01:55:53 +0000 (18:55 -0700)
commitd70420b914c98a3758674c6e9858810e0ab4ea30
tree7ac23e36fd6f69d3450b9a875f12e3a8b0c10943
parentac8d10101b0e3a0a1478f8bb51bbbb0a56fe0956
Input: wacom - use a uniq name for the battery device

The current implementation uses "wacom_battery" as a generic name for
batteries. This prevents us to have two Wacom devices with a battery
attached as the power system will complain about the name which is already
registered.

Use an incremental name for each battery attached.

Related bug:
https://sourceforge.net/p/linuxwacom/bugs/248/

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Przemo Firszt <przemo@firszt.eu>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.h