HID: wiimote: use unique battery names
commit001dac87052903d6850c064737bab004bed94789
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 2 Apr 2013 17:58:34 +0000 (2 19:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Apr 2013 07:38:42 +0000 (4 09:38 +0200)
tree94fb7cde551e4701f250a377d80e8d5cfc0fc6d0
parentf8966048c128eff4f57f7c9e7f71360ebd10e1a9
HID: wiimote: use unique battery names

Battery device names must be unique, otherwise registration fails if
multiple Wii Remotes are connected.

This breaks the sysfs API, but there is no known application that uses the
Wii Remote battery that I know of so we should go ahead and apply this.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote-core.c