Input: wacom - battery reporting improvements
authorChris Bagwell <chris@cnpbagwell.com>
Tue, 12 Jun 2012 07:25:23 +0000 (00:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Jun 2012 07:40:07 +0000 (00:40 -0700)
commitb7af2bb84cea328c766c615aac45cdd498c50bc6
treed9c4632eb89bc09ec5ed61fac0164698c32746a0
parentac173837cd4b268a538235a1699b91457551a9a9
Input: wacom - battery reporting improvements

Do not register battery device until connected to a tablet.
This prevents an empty battery icon from being shown when tablet is
connected using USB cable.

Also, call power_supply_powers() for apps that can make use of that
info.

And stop ignoring input registration failures.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_sys.c