8
8
* based on the pwm-twl-led.c driver
9
9
*/
10
10
11
- #include <linux/acpi.h>
12
11
#include <linux/gpio/driver.h>
13
12
#include <linux/i2c.h>
14
13
#include <linux/module.h>
@@ -639,21 +638,17 @@ static const struct i2c_device_id pca9685_id[] = {
639
638
};
640
639
MODULE_DEVICE_TABLE (i2c , pca9685_id );
641
640
642
- #ifdef CONFIG_ACPI
643
641
static const struct acpi_device_id pca9685_acpi_ids [] = {
644
642
{ "INT3492" , 0 },
645
643
{ /* sentinel */ },
646
644
};
647
645
MODULE_DEVICE_TABLE (acpi , pca9685_acpi_ids );
648
- #endif
649
646
650
- #ifdef CONFIG_OF
651
647
static const struct of_device_id pca9685_dt_ids [] = {
652
648
{ .compatible = "nxp,pca9685-pwm" , },
653
649
{ /* sentinel */ }
654
650
};
655
651
MODULE_DEVICE_TABLE (of , pca9685_dt_ids );
656
- #endif
657
652
658
653
static const struct dev_pm_ops pca9685_pwm_pm = {
659
654
SET_RUNTIME_PM_OPS (pca9685_pwm_runtime_suspend ,
@@ -663,8 +658,8 @@ static const struct dev_pm_ops pca9685_pwm_pm = {
663
658
static struct i2c_driver pca9685_i2c_driver = {
664
659
.driver = {
665
660
.name = "pca9685-pwm" ,
666
- .acpi_match_table = ACPI_PTR ( pca9685_acpi_ids ) ,
667
- .of_match_table = of_match_ptr ( pca9685_dt_ids ) ,
661
+ .acpi_match_table = pca9685_acpi_ids ,
662
+ .of_match_table = pca9685_dt_ids ,
668
663
.pm = & pca9685_pwm_pm ,
669
664
},
670
665
.probe = pca9685_pwm_probe ,
0 commit comments