]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
button: qcom-pmic: demote "unknown button" message to debug
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 9 Feb 2024 15:11:34 +0000 (15:11 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 14 Feb 2024 17:21:50 +0000 (17:21 +0000)
This message isn't an error (there can be a watchdog subnode for example)
but it shouldn't be printed unless this driver is being debugged. Demote
it to a debug print.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/button/button-qcom-pmic.c

index e778e51a4f36c270961f38815dfd4e7cc76286b9..bad445efa865b8477d97dca3613db6416140bf1b 100644 (file)
@@ -133,7 +133,7 @@ static int button_qcom_pmic_bind(struct udevice *parent)
                } else if (NODE_IS_RESIN(node)) {
                        uc_plat->label = "vol_down";
                } else {
-                       printf("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
+                       debug("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
                               ofnode_get_name(node));
                        device_unbind(dev);
                }