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

Configure Feed

Select the types of activity you want to include in your feed.

pwm: pca9685: Drop ACPI_PTR() and of_match_ptr()

Drop rather useless use of ACPI_PTR() and of_match_ptr().
It also removes the necessity to be dependent acpi.h inclusion.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250214154031.3395014-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Andy Shevchenko and committed by
Uwe Kleine-König
b2693edd e71e46a6

+2 -7
+2 -7
drivers/pwm/pwm-pca9685.c
··· 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> ··· 638 639 }; 639 640 MODULE_DEVICE_TABLE(i2c, pca9685_id); 640 641 641 - #ifdef CONFIG_ACPI 642 642 static const struct acpi_device_id pca9685_acpi_ids[] = { 643 643 { "INT3492", 0 }, 644 644 { /* sentinel */ }, 645 645 }; 646 646 MODULE_DEVICE_TABLE(acpi, pca9685_acpi_ids); 647 - #endif 648 647 649 - #ifdef CONFIG_OF 650 648 static const struct of_device_id pca9685_dt_ids[] = { 651 649 { .compatible = "nxp,pca9685-pwm", }, 652 650 { /* sentinel */ } 653 651 }; 654 652 MODULE_DEVICE_TABLE(of, pca9685_dt_ids); 655 - #endif 656 653 657 654 static const struct dev_pm_ops pca9685_pwm_pm = { 658 655 SET_RUNTIME_PM_OPS(pca9685_pwm_runtime_suspend, ··· 658 663 static struct i2c_driver pca9685_i2c_driver = { 659 664 .driver = { 660 665 .name = "pca9685-pwm", 661 - .acpi_match_table = ACPI_PTR(pca9685_acpi_ids), 662 - .of_match_table = of_match_ptr(pca9685_dt_ids), 666 + .acpi_match_table = pca9685_acpi_ids, 667 + .of_match_table = pca9685_dt_ids, 663 668 .pm = &pca9685_pwm_pm, 664 669 }, 665 670 .probe = pca9685_pwm_probe,