[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bf1bca0af63f161afe351cb0e449896cec11cdcc.camel@linaro.org>
Date: Tue, 23 Dec 2025 09:55:15 +0000
From: André Draszik <andre.draszik@...aro.org>
To: Tudor Ambarus <tudor.ambarus@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Alim Akhtar <alim.akhtar@...sung.com>, Peter
Griffin <peter.griffin@...aro.org>, Srinivas Kandagatla <srini@...nel.org>
Cc: Krzysztof Kozlowski <krzk@...nel.org>, semen.protsenko@...aro.org,
willmcvicker@...gle.com, kernel-team@...roid.com,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 2/5] soc: samsung: exynos-chipid: rename method
On Mon, 2025-12-22 at 16:30 +0000, Tudor Ambarus wrote:
> s/product_id_to_soc_id/exynos_product_id_to_name.
> Prepend exynos_ to avoid name space pollution. The method translates the
> product id to a name, rename the method to make that clear. While
> touching the code where it is called, add a blank line for readability
> purposes.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus@...aro.org>
> ---
> drivers/soc/samsung/exynos-chipid.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
I'm not sure this change helps with anything, in particular as the
return value is used to assign to soc_id, but in case it gets applied:
Reviewed-by: André Draszik <andre.draszik@...aro.org>
>
> diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c
> index b9a30452ad21c326af35c06a341b28491cee6979..88d264ef1b8835e15f774ff5a31f5b3de20f74ea 100644
> --- a/drivers/soc/samsung/exynos-chipid.c
> +++ b/drivers/soc/samsung/exynos-chipid.c
> @@ -71,7 +71,7 @@ static const struct exynos_soc_id {
> { "EXYNOSAUTOV920", 0x0A920000 },
> };
>
> -static const char *product_id_to_soc_id(unsigned int product_id)
> +static const char *exynos_product_id_to_name(unsigned int product_id)
> {
> int i;
>
> @@ -150,7 +150,8 @@ static int exynos_chipid_probe(struct platform_device *pdev)
> soc_info.revision);
> if (!soc_dev_attr->revision)
> return -ENOMEM;
> - soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id);
> +
> + soc_dev_attr->soc_id = exynos_product_id_to_name(soc_info.product_id);
> if (!soc_dev_attr->soc_id)
> return dev_err_probe(dev, -ENODEV, "Unknown SoC\n");
>
Powered by blists - more mailing lists