[Linuxwacom-devel] [PATCH input-wacom] Fix powersupply issue for Wacom ExpressKey Remote
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--- 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(>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=/4140 ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
Re: [Linuxwacom-devel] [PATCH input-wacom] Fix powersupply issue for Wacom ExpressKey Remote
On Wed, Oct 7, 2015 at 4:52 PM, Jason Gereckewrote: > 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 > Reviewed-by: Ping Cheng Thank you Jason for the quick fix. Ping --- > 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(>work, wacom_battery_work); > -- > 2.6.1 > > -- ___ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel