From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 D4FD2200AE for ; Mon, 19 Feb 2024 06:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323916; cv=none; b=PAigjqHcRFRfL1oycVQM+T5g32/YidovLDWJbPazv6tVDGTJYcee8oYCj4r3c6nAeq2fI2chvqUzwTwXnGPY7Di5IjWySB+1Q2o80eNHGMn6i9K0BoEUekMYsLWw2axBjgTh3NRFOgO+2CV2cPWzSaoUWwaOsJTbsD5mvmXdwfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323916; c=relaxed/simple; bh=TQodChaPOHWcum/RNtaWMKL6Ir23w3h16d8jHIJEYQ8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=amrgGZZ7XEx8Xl/SLOwL2B7Z4vbKG6mo0UoGP5cP7Mn/YI/RU+T2ojJtYWGQ1xQkUKAhCpDBE49aVIC59kNpwUmx/cNLVhdiX+EFe1lPMZepamtKeakXjNu3v3t6X6Bz94s+H25NouBqtFyg2ATFxUka2V2hVCheIADN4iNc1KE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=nIB01xNe; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="nIB01xNe" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d09cf00214so38374801fa.0 for ; Sun, 18 Feb 2024 22:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1708323912; x=1708928712; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Zy/lENoBOBZbXj8shKgVOAS0kIgCPAbaRSp31XzJm0E=; b=nIB01xNeanzNhVV+SdVCi588Eo0eXBukT40V3RQgpuH9ia14PLKb3/0YI34OtzMfxn 85N9sNV68n+JVB+68RoAmgo5CPE0LDLwYN0i+Nr5ZMzlVTM//jgqKAw09Tcoy/GGmNbd I6f94Edv3EJ5otvwW7LVYZydyai5aHd7Y1yDj2k6un+G/5n+ECyBk/6+yj6R52jyw4FB uj+2Z6b2r37g1AzLz804CfdI9WT/ENAnnURbTQ1wqeOKMOXPrvXLj0U+i30B4NVfl6Ux NCHAABx5avCo4bDky8MjuizLsIuJW2es3tI5yJGSx0ypfVF05LdjNbknfTT/C4jDQn1T 6LBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708323912; x=1708928712; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zy/lENoBOBZbXj8shKgVOAS0kIgCPAbaRSp31XzJm0E=; b=NgKVpkY1+1zN+zD3BzVcC2knJqmpLl2XU4vHJWrgQpy05+c1/vVJpWwUaKZ700Qkhl vTR2Aw7dK1yAYE1Kt+XPQjRB4Qom5kkPYOZu6OgdrZBggMQxctl+p6Z/ddlt6J7QP+6X noE1UFGeag17Qz5EHgLlVgpJCqExhzqYRyYz44Dkt+3kRWEmONNh+xoCQ0xU6rwVAK8f HY3DEK8+7UjgEAkkgcW+8kvF0DHl2jmUQ/wUgreWGHUNs9gQRatx7fxFFA0dO2OeMFOr pUoroFAfK572a8tNyMlsj5Lbvt3QAlw1XVMYTZ6Vg3qIXKi07k+edHDikVj2+CQ4HGYd eecg== X-Forwarded-Encrypted: i=1; AJvYcCUNlkkX/e/VKg/s3tBhlh2zyfbAygJ/PvwlTP8POKqPH3fu0hllYJxIpEkD3iEEKWmf3sAuiuRFO5Q6sC9PXW4LWSvRqE2GC91t0Q== X-Gm-Message-State: AOJu0Yy1ZG7bYWOKFR2voNMYZ7et3L2Ej6bS0XIk7xhFYwid+BNnjhda igyJF/FQOBWQNthIG7oh1sc+BRdPmtUh6hmTPq4EieXGVOIzU5uC8VwZ/FCtOk8= X-Google-Smtp-Source: AGHT+IGP6skyrpQ+LHssyeFVL9x4R2C5PmtB+z/bDgXXtY+zd/lWWTMfb39ns1BsA6xd3vrJYLpPRQ== X-Received: by 2002:a2e:99c3:0:b0:2d2:3b20:72ba with SMTP id l3-20020a2e99c3000000b002d23b2072bamr755168ljj.50.1708323911958; Sun, 18 Feb 2024 22:25:11 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id s10-20020a05600c044a00b004122fbf9253sm10177702wmb.39.2024.02.18.22.25.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 22:25:11 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2024 08:25:08 +0200 Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clk: constify the of_phandle_args argument of of_clk_provider Content-Language: en-US To: Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Sudeep Holla , Peng Fan , Shawn Guo , Nishanth Menon , Bjorn Andersson , Konrad Dybcio , Geert Uytterhoeven , Thierry Reding , Jonathan Hunter , Linus Walleij , Laurent Pinchart , Mauro Carvalho Chehab , Vinod Koul , Russell King , Srinivas Kandagatla , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, linux-stm32@st-md-mailman.stormreply.com, NXP Linux Team , linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-media@vger.kernel.org, linux-phy@lists.infradead.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org References: <20240208163710.512733-1-krzysztof.kozlowski@linaro.org> From: claudiu beznea In-Reply-To: <20240208163710.512733-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08.02.2024 18:37, Krzysztof Kozlowski wrote: > None of the implementations of the get() and get_hw() callbacks of > "struct of_clk_provider" modify the contents of received of_phandle_args > pointer. They treat it as read-only variable used to find the clock to > return. Make obvious that implementations are not supposed to modify > the of_phandle_args, by making it a pointer to const. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/clk/at91/pmc.c | 3 +- > drivers/clk/at91/pmc.h | 3 +- Reviewed-by: Claudiu Beznea