diff options
| author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2025-12-22 16:30:06 +0000 |
|---|---|---|
| committer | Krzysztof Kozlowski <krzk@kernel.org> | 2025-12-28 12:31:37 +0100 |
| commit | 9133ae2119cb3c948675dc566eebf11cc4bb1681 (patch) | |
| tree | 41ce59d33d07cf62b5f6c0db4933b301b57b0ac5 | |
| parent | 12da6f08a07ddaddd336af878350d30449d23a54 (diff) | |
soc: samsung: exynos-chipid: rename method
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@linaro.org>
Reviewed-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20251222-gs101-chipid-v4-2-aa8e20ce7bb3@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
| -rw-r--r-- | drivers/soc/samsung/exynos-chipid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index b9a30452ad21..88d264ef1b88 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"); |
