]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cpufreq: brcmstb-avs: Fully open-code compatible for grepping
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 13 Jun 2025 07:16:44 +0000 (09:16 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 19 Jun 2025 07:06:32 +0000 (12:36 +0530)
It is very useful to find driver implementing compatibles with `git grep
compatible`, so driver should not use defines for that string, even if
this means string will be effectively duplicated.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/brcmstb-avs-cpufreq.c

index 7b841a086acc1614b1ebf55696916160b9518383..5940d262374f053604c41a2db6fad1a67db59a82 100644 (file)
@@ -765,7 +765,7 @@ static void brcm_avs_cpufreq_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id brcm_avs_cpufreq_match[] = {
-       { .compatible = BRCM_AVS_CPU_DATA },
+       { .compatible = "brcm,avs-cpu-data-mem" },
        { }
 };
 MODULE_DEVICE_TABLE(of, brcm_avs_cpufreq_match);