]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: sloppy-logic-analyzer: Fully open-code compatible for grepping
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 13 Jun 2025 07:16:28 +0000 (09:16 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 16 Jun 2025 07:45:14 +0000 (09:45 +0200)
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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250613071627.46687-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-sloppy-logic-analyzer.c

index 8cf3b171c599b890ebfdfe0631af1ad1359b60c8..969dddd3d6fafb8d584663b4cb063ebaa2448f23 100644 (file)
@@ -306,7 +306,7 @@ static void gpio_la_poll_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id gpio_la_poll_of_match[] = {
-       { .compatible = GPIO_LA_NAME },
+       { .compatible = "gpio-sloppy-logic-analyzer" },
        { }
 };
 MODULE_DEVICE_TABLE(of, gpio_la_poll_of_match);