[PATCH 1/4] soc: samsung: exynos-chipid: prepend exynos_ to a method's name
Tudor Ambarus
tudor.ambarus at linaro.org
Wed Nov 12 00:48:20 PST 2025
Avoid name space pollution and prepend exynos_ to
product_id_to_soc_id(). Add a blank line to make things readable.
Signed-off-by: Tudor Ambarus <tudor.ambarus at linaro.org>
---
drivers/soc/samsung/exynos-chipid.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c
index d3b4b5508e0c808ee9f7b0039073ef57915d60fc..cdab1d4326b9de5df477a0545839b7b8b402d55d 100644
--- a/drivers/soc/samsung/exynos-chipid.c
+++ b/drivers/soc/samsung/exynos-chipid.c
@@ -70,7 +70,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_soc_id(unsigned int product_id)
{
int i;
@@ -141,7 +141,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_soc_id(soc_info.product_id);
if (!soc_dev_attr->soc_id) {
pr_err("Unknown SoC\n");
return -ENODEV;
--
2.51.2.1041.gc1ab5b90ca-goog
More information about the linux-arm-kernel
mailing list