Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: max77650-onkey - add of_match table

We need the of_match table if we want to use the compatible string in
the pmic's child node and get the onkey driver loaded automatically.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Bartosz Golaszewski and committed by
Dmitry Torokhov
ce535a2e c15f8ba6

+7
+7
drivers/input/misc/max77650-onkey.c
··· 108 108 return input_register_device(onkey->input); 109 109 } 110 110 111 + static const struct of_device_id max77650_onkey_of_match[] = { 112 + { .compatible = "maxim,max77650-onkey" }, 113 + { } 114 + }; 115 + MODULE_DEVICE_TABLE(of, max77650_onkey_of_match); 116 + 111 117 static struct platform_driver max77650_onkey_driver = { 112 118 .driver = { 113 119 .name = "max77650-onkey", 120 + .of_match_table = max77650_onkey_of_match, 114 121 }, 115 122 .probe = max77650_onkey_probe, 116 123 };