Skip to content

Commit 9133ae2

Browse files
ambaruskrzk
authored andcommitted
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>
1 parent 12da6f0 commit 9133ae2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/soc/samsung/exynos-chipid.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static const struct exynos_soc_id {
7171
{ "EXYNOSAUTOV920", 0x0A920000 },
7272
};
7373

74-
static const char *product_id_to_soc_id(unsigned int product_id)
74+
static const char *exynos_product_id_to_name(unsigned int product_id)
7575
{
7676
int i;
7777

@@ -150,7 +150,8 @@ static int exynos_chipid_probe(struct platform_device *pdev)
150150
soc_info.revision);
151151
if (!soc_dev_attr->revision)
152152
return -ENOMEM;
153-
soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id);
153+
154+
soc_dev_attr->soc_id = exynos_product_id_to_name(soc_info.product_id);
154155
if (!soc_dev_attr->soc_id)
155156
return dev_err_probe(dev, -ENODEV, "Unknown SoC\n");
156157

0 commit comments

Comments
 (0)