Re: [PATCH 2/2] Input: elants_i2c: fixed wake-on-touch issue

2016-01-04 Thread Dmitry Torokhov
Hi James, On Mon, Jan 04, 2016 at 02:57:50PM +0800, james.chen wrote: > From: "james.chen" > > Fix function of wake-on-touch on suspend/resume. > The function of device_may_wakeup will return true if > the device supports wake-on-touch (for example, kitty and buddy). > So, modify the code from "

[PATCH 2/2] Input: elants_i2c: fixed wake-on-touch issue

2016-01-03 Thread james.chen
From: "james.chen" Fix function of wake-on-touch on suspend/resume. The function of device_may_wakeup will return true if the device supports wake-on-touch (for example, kitty and buddy). So, modify the code from "if (device_may_wakeup(dev))" to "if (!device_may_wakeup(dev))". And adjust the cond