Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp963646rdb; Sun, 18 Feb 2024 22:25:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmop2vV+8m7tUH8iUnVD7oZP4xzGfXNG9Oxf49CJ0wVMqgELwmO6H8EbXYFfE9ovgXqEVNwXOyIjO5oa/GvWy9uSsJMB5yULZL+P6F/w== X-Google-Smtp-Source: AGHT+IE2kR+ruroXBxSXEGWbgi5prA8taJDhwoSKycBUhhim+G6N/5b/T2qZAy4JVqB7L/cSiZYe X-Received: by 2002:a05:6512:526:b0:511:454d:25e3 with SMTP id o6-20020a056512052600b00511454d25e3mr7427951lfc.41.1708323931501; Sun, 18 Feb 2024 22:25:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708323931; cv=pass; d=google.com; s=arc-20160816; b=NWjAfex/8XAETkg4E/Audb+2YPEN80sAB3tJ09G1xuvKhH1/4W86W2RxCgjusphipA 1l2GoQig1l0GsTGn9o6tFTQkxGp9YjB4xmgk8IgdH0CYyHC0mtWimoIVfJxpRzj9wte3 WR4vnZeZgrvlfUpjiRJp9FJahF/ySjKdpSn+TiZ1X26qKQXc/LAFyTp2rALMDmz652C5 MAmnk4yWEkKzWFLbd7wXYL9GO2iCm3DvpLNQwogrheVLL3qJStFJzwtxJas1AU2l+nit vQ2ppMMw+Qd4smVNfZ5Q6VQQJBhbIRHXqJ2Fl7qosuMBLerfji574yrq6CMHtxh6QqZe 1abA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Zy/lENoBOBZbXj8shKgVOAS0kIgCPAbaRSp31XzJm0E=; fh=fCYI8uXfsL8SnyjmnHvGpNJBOG8LvkTfoyldY9tDwJk=; b=po9OrH++cYO5Z7exW0sgfF3VHCtseZcuuWlBE2IoKWqkZvVxghJMZ0qjjE+zxSjChj 55jrAjV/PaKOqn8KdRblSQ450/Ql/mGpvK4bJ0k8i9o6quh8KtaIXzyeEr2764hk6QHk nXNe1nokgGeKnBoiYt6vJf1HVeZoVF7Rq6Cdv6wcJCUhy9sX3geDPy4Xzir+vClZB/XN 1jT312ur1K3DMOq+PcSGT4bmibYXOF9Su/BCzigig48NX0+9I97bdXKRW+g42jyG7/Xo WPhXKCBlFu+whaiwem1/hDTqXuQvGtnis1GHidpeaNXCfQ2Wxk4ftqqi+UaaZsDCMKjy PIAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=nIB01xNe; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-70769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70769-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ho31-20020a1709070e9f00b00a3d5da00a67si2223229ejc.598.2024.02.18.22.25.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:25:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70769-linux.lists.archive=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=@tuxon.dev header.s=google header.b=nIB01xNe; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-70769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70769-linux.lists.archive=gmail.com@vger.kernel.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 3FDBC1F21B0B for ; Mon, 19 Feb 2024 06:25:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1204A2031C; Mon, 19 Feb 2024 06:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="nIB01xNe" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 D5AFD200B7 for ; Mon, 19 Feb 2024 06:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323917; cv=none; b=e0RsF5TsM5rTnG/VSQaCgDYUPX2a6JiHecHrhgPD50h8/Rt6TU1UnvEewlSexA81lBj/bmSrU9ppIEXlcAAWuL2aDoUMUYH/w9eJDzBvzJ1uapeUrLBks+Vs1qcNqiEavy8wkjVcZLPsoYId2qLxX/CwcGFW68WiQLKqFqusSS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323917; c=relaxed/simple; bh=TQodChaPOHWcum/RNtaWMKL6Ir23w3h16d8jHIJEYQ8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=QaySBYUEMkKSn+RYk6lMovnhM9nXyTJYOgyTIq+5CrZQvKdk7NCwyfWevXAzOuB0s1o8XHMF7O7GOHGai94kqJW4aNpWpxlpznLer+mxW+vN+KxJ7va2YKPNghCIWeavbLkyd50g0dxsC4vMQjbqAc7TZXClCj/sL/bJNuE+T6E= 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.181 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 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2d09cf00214so38374811fa.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=eYy1c/cmMmw4xKczQVc43p4/5lHYPAKsWxylxe2l/3xFGND1ppm13rzdN+Y0HNhya5 0Nz8MHCTDolN5tN22KUOPgdhDmAiaDRiIFP2f5ItkxDWqzs3jJjrUN6gIX8u5R9KSoXQ E8n7ELhxzPe5lSLYfTtGT4OMZ4Bbt80Puxsa1QDsFN6xXWfnnKEt3oq5M5XCuhWWB4iN x+JaHxc0u99CWZlpWnw2qrr13PmAXnAzLk1iVxMI2ydR9Jmzdj/9LPIcCFolUvqQiMZ5 ngWIK+n9MuIW92i66Ai+3iMg8n9gY4HWnZYqx/BW2diUhSIn5caz2Gwq+/BNhKqF4b/f rM+A== X-Forwarded-Encrypted: i=1; AJvYcCUOfPD5FtzMWx0nvYYXwUahnusp+iqvoJ72PP5NW/d/BgBicCyaM228A8icP/dB54UaRO/GRXCSEQT83Eo82bmAmuDpNrZ5ha8Myczp X-Gm-Message-State: AOJu0YzAX7Bh8tfzzgG4XpB9zQhoVwnIzAMWQC6GnJOS+jfVj2m6E5+V 7VwFXfHTLde7lbpl0K5yPu8HHRFGBNx9ZZ77tAdB2dzRw9Ylfm42aAtxu6QVU+8= 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-kernel@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