Input: cy8ctmg110_ts - do not hardcode as wakeup source
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 6 Jun 2021 00:04:49 +0000 (17:04 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 6 Jun 2021 03:34:09 +0000 (20:34 -0700)
Let platform specify whether the controller should be a wakeup source
by registering as I2C_CLIENT_WAKE.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210603043726.3793876-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cy8ctmg110_ts.c

index d832572..d83bf82 100644 (file)
@@ -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: