From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3D8DCCD18D for ; Mon, 13 Oct 2025 14:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Lq+Ws4Gh6K6eIkCbBEE6sqLj3gYzgBjez3Nbj+vwu0c=; b=SQ/B40tYfoen5V ZCr0s3bba0p9u7J8m84HQY4gaxBEqGY1k1p9mS2uYUFKEyaB7WNP/jVzm5w7cJUrFkHIt8PXmJD1U e06HX7rWM1E6ezK+PUdI1+ZKKZUQRtrDfxFvvxK2R8LuzzGJUVXM/gKWYGd4pwBH/get7vhQyRQ6M LUpTL5/H8fr/kA+7JcrNyQAmTkpHKa0TO9Ys8zvRBbmOeX+/LaP9aGan8NkPtSCZbYuIB6dErER2o hsObqxhSDLDMkeFU3WLRrsj+NhlD66CgGxYqoKIPEYhEaZ5WXuiJJCxBpVHoGRKUmsxtrLT2VqTgy ORLe0EJxPkFMjHAFkoOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8JKE-0000000DKcN-2IXl; Mon, 13 Oct 2025 14:14:58 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8JK9-0000000DKUI-029o for linux-rockchip@lists.infradead.org; Mon, 13 Oct 2025 14:14:55 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-57dfd0b6cd7so4916946e87.0 for ; Mon, 13 Oct 2025 07:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1760364891; x=1760969691; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=h+YhCU9BSkNGYIn59ygfcOhebsOBGxL8NqrMakgbz3w=; b=BA3cikMo0okmudridYw3wUIzu30wlGE+epllHoZMK09e4D3FHzFz9IZl2gBq82O6oT 9fzZWjp1yPp7wiT75CKLByVZdfhIdLLZVVTBP6sUMjd1tJ+YIYYLMvoOpalzm5i8MAbp X2sug02vprlrXd2QNiX//RHkJpXVJ9XNqlKyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760364891; x=1760969691; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h+YhCU9BSkNGYIn59ygfcOhebsOBGxL8NqrMakgbz3w=; b=wSD3y02GBg11mP1ol1/hkzLVqoWUTQ7M3/DKWDM6iRjr37H4GpihW7LoJbYUhdcBQZ J6AwU8Hfw2sePE71n1EZpi57Ftm26a1ebGyk8c5CW6iWbc6tZRUHNfx7wMpumPpcj2Bo POE6a8xRSaFy8wP9PpX5TzOaEvjOs3/XeXAb7Hl+FKTnC3kJRIgTNSYBggrNW8GWUQZL vcu/2wgbTZnnyX70CB02Do/+aJK8PXj1Ko8rfaT+dQU7KhQbllnG6hpp9cAt03t+ctZK cEn+086it+9a5NsSfXWPvaB3h3d+isCv/uaqm6kKblPuOF2KhKFCRcNZzRUhWj+m5dwx gfFA== X-Forwarded-Encrypted: i=1; AJvYcCUUMUoPshkhFZ5zHB6RNA/4uRrIMPbJlSAj4da6ppWvSJtkNpHP4KgzyH1F06RNzgevcyMftNT4ErSOXM74dw==@lists.infradead.org X-Gm-Message-State: AOJu0Ywl+IAO8e79REc2IoOKoHIOFeN7g66nf3jxkbe39GDpFyvuJJl0 3QGhA2TsoiHmOIC5UCgMhuKBU3m+6YJu7YXCuDRSUbw+xo7+UkSc6KXiKqbAQ+t6vQ== X-Gm-Gg: ASbGnctqjoUrlyliOb1D7Qb0m1Y6QU/lvU/6nXLFNSTGXyKLcPnzZ2XaXgZ+LDlzA1k rZmd5lGR0ReN68zXVNl+WYCF/TNhZgZVnD34RvuE1T2CDq7+JVXW0jWe+oVDGrwQ7AJ64I0pg5J FB7ytjvZfrxLZOj0xIuE8GY9ggvHWiDotzI3ur6jHIn4d3F4EPWxtgrQ9yZnsRj46vLXsuc6n3A s3HcLuW33H+eCAb44OtVXJOVLMPkBdDqc7V7LFD1tUniCSlAx0aqTaw2KtzY/49R6ODCwxuOPns jhIzhcXZH92TpcY5DlgQItlZ2/8f5SUyMph4PJ9/MFHVYFGUsTC5egYvurqedcf3xu/14Ah36SS /u9osx81ws9tZ2SL9lFBdq6K1TWHrAoIQ2PJxSR0yNJuydMCN1T/eEAiV2ovTLzmOOnEN/T5L/8 fjr7gAjnrtoTHtgc8YBGUEbzMkZviD X-Google-Smtp-Source: AGHT+IG2QYB2+56krLBk85ko6pGpX0D4THrfkt1zz892JTpjDOUAww9G2kctwSbBGnVpsEQJrH5Ywg== X-Received: by 2002:a05:6512:3f12:b0:58a:fa11:b7af with SMTP id 2adb3069b0e04-5906d782160mr6219748e87.14.1760364890722; Mon, 13 Oct 2025 07:14:50 -0700 (PDT) Received: from ribalda.c.googlers.com (56.213.88.34.bc.googleusercontent.com. [34.88.213.56]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-590881e4e58sm4165256e87.25.2025.10.13.07.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 07:14:50 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 13 Oct 2025 14:14:41 +0000 Subject: [PATCH 01/32] Input: cyttsp5 - Use %pe format specifier MIME-Version: 1.0 Message-Id: <20251013-ptr_err-v1-1-2c5efbd82952@chromium.org> References: <20251013-ptr_err-v1-0-2c5efbd82952@chromium.org> In-Reply-To: <20251013-ptr_err-v1-0-2c5efbd82952@chromium.org> To: Linus Walleij , Dmitry Torokhov , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Tomi Valkeinen , Leon Luo , Kieran Bingham , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Julien Massot , Jacopo Mondi , Daniel Scally , Dave Stevenson , Benjamin Mugnier , Sylvain Petinot , Yong Zhi , Bingbu Cao , Tianshu Qiu , Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Matthias Brugger , AngeloGioacchino Del Regno , Rui Miguel Silva , Laurent Pinchart , Martin Kepplinger , Purism Kernel Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dafna Hirschfeld , Heiko Stuebner , Sylwester Nawrocki , Krzysztof Kozlowski , Alim Akhtar , Yemike Abhilash Chandra , Greg Kroah-Hartman Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-staging@lists.linux.dev, Ricardo Ribalda X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251013_071453_104020_5C804C45 X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The %pe format specifier is designed to print error pointers. It prints a symbolic error name (eg. -EINVAL) and it makes the code simpler by omitting PTR_ERR() This patch fixes this cocci report: ./cyttsp5.c:927:3-10: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Ricardo Ribalda --- drivers/input/touchscreen/cyttsp5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 071b7c9bf566eb0b58e302a941ec085be1eb5683..47f4271395a69b8350f9be7266b57fe11d442ee3 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -923,8 +923,8 @@ static int cyttsp5_i2c_probe(struct i2c_client *client) regmap = devm_regmap_init_i2c(client, &config); if (IS_ERR(regmap)) { - dev_err(&client->dev, "regmap allocation failed: %ld\n", - PTR_ERR(regmap)); + dev_err(&client->dev, "regmap allocation failed: %pe\n", + regmap); return PTR_ERR(regmap); } -- 2.51.0.760.g7b8bcc2412-goog _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip