]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: tsc2007 - change warning to debug message if pen GPIO is not defined
authorSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 3 Sep 2025 13:52:50 +0000 (06:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Sep 2025 13:59:04 +0000 (06:59 -0700)
Since pen GPIO request is optional, there is no reason to throw dev_warn if
such GPIO is not defined.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Link: https://lore.kernel.org/r/20250824091927.105121-2-clamor95@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc2007_core.c

index 5252301686ec63fb9307cb580585940536378451..9fda83acccb192f97f0a543d5239698539be9f2e 100644 (file)
@@ -253,7 +253,7 @@ static int tsc2007_probe_properties(struct device *dev, struct tsc2007 *ts)
        if (ts->gpiod)
                ts->get_pendown_state = tsc2007_get_pendown_state_gpio;
        else
-               dev_warn(dev, "Pen down GPIO is not specified in properties\n");
+               dev_dbg(dev, "Pen down GPIO is not specified in properties\n");
 
        return 0;
 }