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

Input: drv260x - remove OF dependency

As the driver is using generic device properties, it should work
properly when CONFIG_OF is turned off. This patch removes the
ifdef CONFIGOF and make sure the driver always have of_match_table.

Signed-off-by: Jingkui Wang <jkwang@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jingkui Wang and committed by
Dmitry Torokhov
bc682a50 fad358a0

+1 -3
+1 -3
drivers/input/misc/drv260x.c
··· 652 652 }; 653 653 MODULE_DEVICE_TABLE(i2c, drv260x_id); 654 654 655 - #ifdef CONFIG_OF 656 655 static const struct of_device_id drv260x_of_match[] = { 657 656 { .compatible = "ti,drv2604", }, 658 657 { .compatible = "ti,drv2604l", }, ··· 660 661 { } 661 662 }; 662 663 MODULE_DEVICE_TABLE(of, drv260x_of_match); 663 - #endif 664 664 665 665 static struct i2c_driver drv260x_driver = { 666 666 .probe = drv260x_probe, 667 667 .driver = { 668 668 .name = "drv260x-haptics", 669 - .of_match_table = of_match_ptr(drv260x_of_match), 669 + .of_match_table = drv260x_of_match, 670 670 .pm = &drv260x_pm_ops, 671 671 }, 672 672 .id_table = drv260x_id,