]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Input: tsc2004/5 - respect "wakeup-source" property
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jul 2024 17:27:16 +0000 (10:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Aug 2024 01:10:41 +0000 (18:10 -0700)
Do not mark the device as wakeup-enabled by default, respect the
standard "wakeup-source" property.

Link: https://lore.kernel.org/r/20240711172719.1248373-5-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc200x-core.c

index cd60bba11c56293b7ef5d8f8b6a39be01296220e..90a4ace22395357d6ffae6b9d020060ca46af763 100644 (file)
@@ -562,7 +562,8 @@ int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id,
                return error;
        }
 
-       device_init_wakeup(dev, true);
+       device_init_wakeup(dev,
+                          device_property_read_bool(dev, "wakeup-source"));
 
        return 0;
 }