As outlined in commit ea90b47, the power supply interface changed around
Linux 4.1. This patch fixes up the usage of that interface by the
ExpressKey Remote which was introduced in 6efc626.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 3.17/wacom_wac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3.17/wacom_wac.c b/3.17/wacom_wac.c
index 9850ffe..972c735 100644
--- a/3.17/wacom_wac.c
+++ b/3.17/wacom_wac.c
@@ -698,7 +698,7 @@ static int wacom_remote_irq(struct wacom_wac *wacom_wac, 
size_t len)
                        wacom->led.select[i] = touch_ring_mode;
        }
 
-       if (!wacom->battery &&
+       if (!WACOM_POWERSUPPLY_DEVICE(wacom->battery) &&
            !(features->quirks & WACOM_QUIRK_BATTERY)) {
                features->quirks |= WACOM_QUIRK_BATTERY;
                INIT_WORK(&wacom->work, wacom_battery_work);
-- 
2.6.1


------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to