Message ID | 20210603043726.3793876-3-dmitry.torokhov@gmail.com |
---|---|
State | Accepted |
Commit | 2a15cebb8b40ef55d3a565b9acaec21791cb7e37 |
Headers | show |
Series | [1/7] Input: cy8ctmg110_ts - rely on platform code to supply interrupt | expand |
On Thu, Jun 3, 2021 at 6:37 AM Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > Let platform specify whether the controller should be a wakeup source > by registering as I2C_CLIENT_WAKE. > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c index d83257284537..d83bf82f02d4 100644 --- a/drivers/input/touchscreen/cy8ctmg110_ts.c +++ b/drivers/input/touchscreen/cy8ctmg110_ts.c @@ -233,7 +233,7 @@ static int cy8ctmg110_probe(struct i2c_client *client, goto err_free_irq; i2c_set_clientdata(client, ts); - device_init_wakeup(&client->dev, 1); + return 0; err_free_irq:
Let platform specify whether the controller should be a wakeup source by registering as I2C_CLIENT_WAKE. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> --- drivers/input/touchscreen/cy8ctmg110_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)