]> git.baikalelectronics.ru Git - 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)
commitbedeb027085bc78a714d70e7c7fae9a8f142e957
tree7ac23e36fd6f69d3450b9a875f12e3a8b0c10943
parent7118cf5174dd666e1fa8bf8d8013ae5bf5a2b83f
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