From patchwork Thu Feb 8 20:27:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 198563 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp438264dyd; Thu, 8 Feb 2024 12:37:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/XI8eN4yYG0jiJKLCHJIRjprmEu1rpU0ajmJpNWQSDkKOmxY6fHTeAAKRHinQoceLeqrs X-Received: by 2002:aa7:c3d9:0:b0:55e:fead:d6e2 with SMTP id l25-20020aa7c3d9000000b0055efeadd6e2mr261793edr.20.1707424655531; Thu, 08 Feb 2024 12:37:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707424655; cv=pass; d=google.com; s=arc-20160816; b=vYrGyIQmqEnasy/td0q7U56aV6H6/gVQTh2tBFkMPhM1CD6b6vy1K69Mj52X5o4G5b e3MEzOsblpim3HcwQ7sfAwmh64B7gpweSjgKAIeMNzR4F6LO4rn1UGDK/EIILGmMPCHG +OK413qJv7TAoPiFOKwW8O7Lm72NNaRfiBE/IBZ4LqPVczfMx1ypwbf7O0gCxDmy7Kd3 v9oz5p+p7aYtq7jmGuTtRATPUzNZywNnrFA+hdqIQFGwKvN2q5uVvVMEa3Cx3Co8PHm7 bSRkBJERX3dMxiAt2BsZ4GLwvEkmUlaCY6juUdGdYFY5YXZFiHbWLr2NZ2JAE2Tex840 p1gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=NIl3nKoqWKpsBAq33qAsQr6tTJHAtXKfr8vYfHmeqPU=; fh=bY6XZqbxp6BUI674aCqo/MBhxiC3sy0AGVu3JdJu1Aw=; b=FvgZwHT3rk6uty5+RymxR36VZote+ux0RUWaZa7m4rBJWkAQ2U+kRYDDhWPH0xmejz dz0Z2NiKqGqD9AQD0g5Jym4EgPv2Kyz8CAWQIpbhkQa5tBjcLSxAEwEP0cilzcJj6fu9 /gjoJAO3TlYHJjJIVtx49X8bQKqcPvzaGB3jZgBOdlNECXuRFXmrmkbqd3HLy9A97DM9 eBsho4UyBnw0wQARhkvz+CpcM4o/dQuv+h0daIYitYAV/mJaOCbcnyPixEXQjbJVkUXL cQuShRovTIEM1ulkdYjwupN4weAMq1CVC/sYR9Joqiu3NSbIuuB1RpE1PGVUONbYaH5j QN8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1LVfB1q; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58666-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58666-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWtTjeUmU4S5/KwVyF6ZfEPFFC+SymWiHRoUEJ/ihfANYg1BXQbYls0+ESihiyycYHLP2T55hskQIOW7wr1I07XZfEMfg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id co12-20020a0564020c0c00b00560bb856c52si89187edb.74.2024.02.08.12.37.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:37:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58666-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1LVfB1q; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58666-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58666-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 019881F2ED0F for ; Thu, 8 Feb 2024 20:28:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6FD83C099; Thu, 8 Feb 2024 20:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="M1LVfB1q" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0981937711 for ; Thu, 8 Feb 2024 20:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707424070; cv=none; b=AtmMevTjRkHBfRpssBNedXiok58mmsE/g8xmU5R7sZFt+3op3Heg8DhCBpQRWLrmSSQN9Tkfw0PM6OM0EuJSVipY4MSOIs1sRAqpmiSM4qrJdqgoV8hGLxZQAwt3jbvIOckSYwGENhPvLYSAlJC9LUNCJUpMyEBLbhCzxUrJ2JA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707424070; c=relaxed/simple; bh=gpdmiFJjJucd1Zl9QhqyKAFaEgPM4+P1pUU2iwmfaAg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gP7zfY/FA2MwydcHF18VTsWQUdVP+ccTcRrndeXWU9Q7vTJbP3qSItKXwgxCGwFvAPFAuVUoBD9Vn+CKk2WTsMWlNY8OWZNaOENusrcHkZUeugu0NxcBSNXiml9VWAvf1Pdsf98yATq7YzEAVsbhjzddwo8jz6yjdWkqTMXvHnE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=M1LVfB1q; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41008ab427fso2292375e9.0 for ; Thu, 08 Feb 2024 12:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707424067; x=1708028867; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NIl3nKoqWKpsBAq33qAsQr6tTJHAtXKfr8vYfHmeqPU=; b=M1LVfB1qw6VDUQWfzOeWtNkxTDOBjJc5nexd8cTg4vzFlCsetjtOrdpXerWVT3oIYF X07CWoTa/Zh4fwyRz/mFNgC7X8kuBgBCaqtFKNzTXhZWZ8eMCs5Aj4bW7EFFGHA2+O7d TqsAsn/IIXD7gPcGkPwkpXyLFaEMzIl8KDWVyluXjqCDWABI3JxfB18RP1nJCOYDOI5G 2CtUhuMiWjCK+f9AZmiV47QaF21HZuIsyoqVo5hSV2fw7esSgirG5aDAg/WlIGjLUbfs QxPxeCj62iiZQ9QXwjG/HcM8ChdVqvWogP2DKm6SzeBBT/JmjiW5zhO7Kw1igY3GCBcj T7LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707424067; x=1708028867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NIl3nKoqWKpsBAq33qAsQr6tTJHAtXKfr8vYfHmeqPU=; b=YsdJf/g3nLqLNgHO10JE7Rc0jGa21ewp8O6crFxDbGhnF95f68EGCmiRsBW3pgk8xl fpiVjsngTDf/ECdN6vLwXR3Y1V/En8Bh/YIVSMY8ryIb94hhne6RR/giq5XUWRyrnlL1 txK8wJ7Ocz3Ey9cnzge7Mbwhyoy8ZfdoJRaF8qyitZJipmFBM+IWfweD1NF16RFZ4sCu GgNmhnZiPWbnOL9OUH7N5Xbpf4bJZuArlod+izFnj2RSDV7Ln2gJpFuJyHVUcAnxZqSn 1ZCtZ86AZ3mdQW0hDE356RU3pxIwyfEkU1EBGLlMznfYJ7y5k2OMpgWk5LUsUNu9YZij 3LzA== X-Gm-Message-State: AOJu0YxCqkQfkH5IqzKYz+jG4Xq+E6iZKP5vWY5dk4gDTL9nPZjygZup AxJhuWc5MLrrRrlQpyAX8X59qy+uylGIOCsWRctrEX6i29wEzO6a9acjg0Iy2XdKEHfbFVNmq3R Y X-Received: by 2002:a05:600c:3595:b0:40f:df2d:870f with SMTP id p21-20020a05600c359500b0040fdf2d870fmr299007wmq.41.1707424067333; Thu, 08 Feb 2024 12:27:47 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXKOn7hUxxacPQonDj1sCI1q2P7LYutfLlDrjtemlI58fVapiIBWbUo6U/jxDBTKWpqnF5Z0hXAvytErcEB/L0izRsYp7DjWKZtHWvMQRN/9tJrr24vx5ngkgreIs01drwRCsdzxNXv Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id a18-20020a05600c349200b0040fa661ee82sm368027wmq.44.2024.02.08.12.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:27:46 -0800 (PST) From: Krzysztof Kozlowski To: Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dmaengine: pl08x: constify pointer to char in filter function Date: Thu, 8 Feb 2024 21:27:41 +0100 Message-Id: <20240208202742.631307-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790364515703940375 X-GMAIL-MSGID: 1790364515703940375 The opaque argument chan_id passed to filter function is actually pointer to const memory, so make that obvious in the filter for code readability and safety. Signed-off-by: Krzysztof Kozlowski --- drivers/dma/amba-pl08x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index eea8bd33b4b7..fbf048f432bf 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -2239,7 +2239,7 @@ static int pl08x_resume(struct dma_chan *chan) bool pl08x_filter_id(struct dma_chan *chan, void *chan_id) { struct pl08x_dma_chan *plchan; - char *name = chan_id; + const char *name = chan_id; /* Reject channels for devices not bound to this driver */ if (chan->device->dev->driver != &pl08x_amba_driver.drv) From patchwork Thu Feb 8 20:27:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 198561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp437754dyd; Thu, 8 Feb 2024 12:36:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX43VfUEmy5Lj/Zf1ayQ8JAK4BWQCdc14KfozQHVpy/OK/onut1hil1FXa4pq0/ujr38u2RYwU+XikLJuaWCHol8XPAfA== X-Google-Smtp-Source: AGHT+IHJoXrexAityQsRLHhyaws7m5grrmHK4c6eW+ehnzqz3LG8O/0S2nRS0ox/0K8sCK6gX1fI X-Received: by 2002:a17:906:f0ce:b0:a38:627c:28bf with SMTP id dk14-20020a170906f0ce00b00a38627c28bfmr310919ejb.29.1707424593229; Thu, 08 Feb 2024 12:36:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707424593; cv=pass; d=google.com; s=arc-20160816; b=UDLPt9ZRBqXDDIOkXD+I678nRb1iheDszWkhcA5fbQ4+hvWa9lRhUpXnDCmaptLhU8 oEb8/QEMcgvmYwnzjr60b9VPHe5LeixFt31kbaeKoF/et2DOE1uAr2S76tOQCTENEiLH 3ft6X9mNYWI3cMQkTl9w45iWj0GvXiHhvY5WtssOJLMT/naBWC4Ts6eXzL3UQbr+p/kR uYzwYUCkKg2AnTht3gkMUQ1w1ms2mxBn9brVFT5vNuidy0I7NKfqZ+8Ew+BC4XMdPcwn rJswVm4bKzz5QpjMEIPILokDCU6oYD7FYQv3aaMN5wvB551hdK7OSrDi9jqFHSYLdAes nN8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4JuiKd4Pqu+cNXuLAtoDDjFiKegltder1S+vVqg9Rbg=; fh=pYyfNJJ6/JAXMPipV1u7bjko6VBz3LWoBwvEMjH2BKU=; b=KoAddHHy+CFC4lZkjdvImZbOSW1O3LDXT0n24eemmR8p05I7H07WUrz6Ugo16kmrls Ibi/fInwYXMZAhwCVNwHbB4fqqy6dTKs/KJUOjMpma1z1VRl6XHnxCxPPN3pN0PikQ5a r7IelAchytSwrBwc46oFCsrLZuGK0hJXBjo0L2HIWSauDBrh7/k018kOBwTaoCf5h6+a uIzU0EHNzksc2lPszQ6QJLmESyG1Z35FsWlllEjgIM9j+DZoDn3Bo9/LTX4munP58Pef gOElLdCcwVdZi+hvjlBSVfey1G7KIqjT9vB5nM3EdTbziEEvUgPfK+dvfCIF1y6kdcX9 OCTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=moaMQX58; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58667-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58667-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWsW+xxLjSMxmQbKh6+yWgM53uBANxGn8AQ2c/qS7/f1U0NsOfYORgcorcMZxIAhPl7+A8lBmkmeUYATvttHNRnnXjpBw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lh12-20020a170906f8cc00b00a35ddad87e5si32444ejb.930.2024.02.08.12.36.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:36:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58667-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=moaMQX58; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58667-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58667-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8382D1F2F231 for ; Thu, 8 Feb 2024 20:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94AFD3C472; Thu, 8 Feb 2024 20:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="moaMQX58" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6796D383BB for ; Thu, 8 Feb 2024 20:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707424075; cv=none; b=IiT6vnHUtMFgr/4vgTSiWRakYkkI3Hd57yBj8eOh5/dISs1Opa5JBi9cBrKvV5VXihEkY2zDJJLRybK3v4d1sl6sQQty2DrSJg05FF9Y3agUurVwMIpaNDCXCotA4TeaGcfgJk6hoVea9KFX0obQVGLS1nmNzrfWSA7p6t0+LL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707424075; c=relaxed/simple; bh=vFxXV0CMitFA5HtWV0cE6DuKRu++Rris7YbjEufvo3I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EtyKgMUamkzSdqAh6NrgYe5UAszNwquPt0ZFwFjh3RdHf5Pf2DJRa60I3EFYtr7QwRbI7YyHOeaYs5DRAjtLpZuAbM6JAfM9QtylRGEeFZAgIl5UJIYYKE8o/PvwzygHWCkm18BJHmRlSs93luzjhl/xX/2p3KRtxYAODgOBgKg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=moaMQX58; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40f033c2e30so2241395e9.0 for ; Thu, 08 Feb 2024 12:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707424068; x=1708028868; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4JuiKd4Pqu+cNXuLAtoDDjFiKegltder1S+vVqg9Rbg=; b=moaMQX58ofWGF0zC2+Kql5ILkzmCYwS1sUVwT3uG/MMtZPbmdt6kQg9IXFmpynFijZ CZ6Y8dik8WtylJ0T/qByUNT3zmE/5cnlrFoBoii6LoX3jQKurkw5x6g2/KUZ7QzhCzB0 m4F7liWYu8ep5mwGN2XlPWemNuVKng99Nx4kzrU1cOn/CQK98EibSS+OqRidz3XbmyK5 Kn0ECEej+qaec3vY/o5/NzsKnMRCHjfqf+9yLmRKTkuhUpbX8hSYRL3MLHVL2RthVSaQ GClFpkREHU7f2gjHjAf+JHjiZ9fPsxNiJQ5yUbO8HqiMOuxEcIfpOKQTM8AIDuSggJtF MXCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707424068; x=1708028868; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4JuiKd4Pqu+cNXuLAtoDDjFiKegltder1S+vVqg9Rbg=; b=VD5j/isrinCPnYigjN+uNkPBC9ehw6w6osshGOqog3FvrqW8KhG7uZ9ofaNf90+9Ji YQ0KAxbC7YRPOFqVWGkqZB9hCjdZcbm5ePYgZAOsuf+B4AqSPXPXV/L33eCvanRQoj+Y PbHqi+y88KCyczG0W9U2FHzNnNcPZYSFVDplZVMrDbWEgi7a9GIxBY9OWiN38kDAEMXs 15wLaeA+IYZWujZBFPVLUkqDAzsq/8pxIVn4KC9CNZwMgKqRgnd5u9mSazxBW/4GZZcU /EnNlu/1ZnVAOrCWsS+FH+k5cFqtf1nnqb0vLytziu8aPF9YsEkc8+oPAnhR5k1rK4+1 qZNA== X-Forwarded-Encrypted: i=1; AJvYcCXu4D/wVOCxAHftnHbVoPMnw008zgab9piBIsfHKOwM4km+a4tjsk0IMwlvES5tuXwkmKMQsP6nAuACqVmn77ikhd0dmCpfAWhnXEP1 X-Gm-Message-State: AOJu0Yx0goHpSHCu7vphd/oMx3JVNZMjHVbV1OJzSY7GWyFE70TwQFax ullUKPDM1I9U0iRRKyJ4a9mDZFTFsafYh/euewfR2jy2Oo8UeIvkt0y4mpeBw416F/RWnf8atFL 0 X-Received: by 2002:a05:600c:4f8d:b0:40f:b166:7688 with SMTP id n13-20020a05600c4f8d00b0040fb1667688mr339622wmq.15.1707424068763; Thu, 08 Feb 2024 12:27:48 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWhjwHl5cnxJuvqsCCefS/vwqiR7V/KJk9qJX1AzhVUqLI1edCldqbn/2tW2G4yxAwdmnkRVixnmeP9M2toQqqYF2wGMygKsdGyxfogumQ+mwUcpQqbeE4zGvhPGMpK16a/bu/ubuQo Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id a18-20020a05600c349200b0040fa661ee82sm368027wmq.44.2024.02.08.12.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:27:48 -0800 (PST) From: Krzysztof Kozlowski To: Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] dmaengine: of: constify of_phandle_args in of_dma_find_controller() Date: Thu, 8 Feb 2024 21:27:42 +0100 Message-Id: <20240208202742.631307-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208202742.631307-1-krzysztof.kozlowski@linaro.org> References: <20240208202742.631307-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790364450240076492 X-GMAIL-MSGID: 1790364450240076492 of_dma_find_controller() does not modify passed of_phandle_args so the argument can be made pointer to const for code safety. Signed-off-by: Krzysztof Kozlowski --- drivers/dma/of-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 775a7f408b9a..e588fff9f21d 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -29,7 +29,7 @@ static DEFINE_MUTEX(of_dma_lock); * to the DMA data stored is retuned. A NULL pointer is returned if no match is * found. */ -static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec) +static struct of_dma *of_dma_find_controller(const struct of_phandle_args *dma_spec) { struct of_dma *ofdma;