Skip to content

Commit 155c1e5

Browse files
krzkdtor
authored andcommitted
Input: Fully open-code compatible for grepping
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent c44f79c commit 155c1e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/input/misc/gpio-beeper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int gpio_beeper_probe(struct platform_device *pdev)
9494

9595
#ifdef CONFIG_OF
9696
static const struct of_device_id gpio_beeper_of_match[] = {
97-
{ .compatible = BEEPER_MODNAME, },
97+
{ .compatible = "gpio-beeper", },
9898
{ }
9999
};
100100
MODULE_DEVICE_TABLE(of, gpio_beeper_of_match);

drivers/input/touchscreen/melfas_mip4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mip4_pm_ops, mip4_suspend, mip4_resume);
15541554

15551555
#ifdef CONFIG_OF
15561556
static const struct of_device_id mip4_of_match[] = {
1557-
{ .compatible = "melfas,"MIP4_DEVICE_NAME, },
1557+
{ .compatible = "melfas,mip4_ts", },
15581558
{ },
15591559
};
15601560
MODULE_DEVICE_TABLE(of, mip4_of_match);

0 commit comments

Comments
 (0)