]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/input/keyboard/goldfish_events.c
Input: goldfish_events - add devicetree bindings
[mirror_ubuntu-jammy-kernel.git] / drivers / input / keyboard / goldfish_events.c
index 907e4e278fce1dc8f85777b90354ecd5cecd6e36..b11d218604a74f67ef1e38acac05a7e929894ea2 100644 (file)
@@ -178,10 +178,17 @@ static int events_probe(struct platform_device *pdev)
        return 0;
 }
 
+static const struct of_device_id goldfish_events_of_match[] = {
+       { .compatible = "google,goldfish-events-keypad", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, goldfish_events_of_match);
+
 static struct platform_driver events_driver = {
        .probe  = events_probe,
        .driver = {
                .name   = "goldfish_events",
+               .of_match_table = goldfish_events_of_match,
        },
 };