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

Merge tag 'ib-mfd-arm-leds-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd into linux-leds/for-next

Pull PM8XXX namespace cleanup from Lee Jones.

* tag 'ib-mfd-arm-leds-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
mfd: qcom-pm8xxx: Clean up PM8XXX namespace

+29 -35
+1 -1
arch/arm/configs/multi_v7_defconfig
··· 489 489 CONFIG_MFD_MAX8997=y 490 490 CONFIG_MFD_MAX8998=y 491 491 CONFIG_MFD_RK808=y 492 - CONFIG_MFD_PM8921_CORE=y 492 + CONFIG_MFD_PM8XXX=y 493 493 CONFIG_MFD_QCOM_RPM=y 494 494 CONFIG_MFD_SPMI_PMIC=y 495 495 CONFIG_MFD_SEC_CORE=y
-1
arch/arm/configs/pxa_defconfig
··· 411 411 CONFIG_MFD_MAX8907=m 412 412 CONFIG_EZX_PCAP=y 413 413 CONFIG_UCB1400_CORE=m 414 - CONFIG_MFD_PM8921_CORE=m 415 414 CONFIG_MFD_SEC_CORE=y 416 415 CONFIG_MFD_PALMAS=y 417 416 CONFIG_MFD_TPS65090=y
-1
arch/arm/configs/qcom_defconfig
··· 119 119 CONFIG_POWER_RESET_MSM=y 120 120 CONFIG_THERMAL=y 121 121 CONFIG_MFD_PM8XXX=y 122 - CONFIG_MFD_PM8921_CORE=y 123 122 CONFIG_MFD_QCOM_RPM=y 124 123 CONFIG_MFD_SPMI_PMIC=y 125 124 CONFIG_REGULATOR=y
+1 -1
drivers/leds/Kconfig
··· 645 645 646 646 config LEDS_PM8058 647 647 tristate "LED Support for the Qualcomm PM8058 PMIC" 648 - depends on MFD_PM8921_CORE 648 + depends on MFD_PM8XXX 649 649 depends on LEDS_CLASS 650 650 help 651 651 Choose this option if you want to use the LED drivers in
+5 -9
drivers/mfd/Kconfig
··· 756 756 module will be called ucb1400_core. 757 757 758 758 config MFD_PM8XXX 759 - tristate 760 - 761 - config MFD_PM8921_CORE 762 - tristate "Qualcomm PM8921 PMIC chip" 759 + tristate "Qualcomm PM8xxx PMIC chips driver" 763 760 depends on (ARM || HEXAGON) 764 761 select IRQ_DOMAIN 765 762 select MFD_CORE 766 - select MFD_PM8XXX 767 763 select REGMAP 768 764 help 769 765 If you say yes to this option, support will be included for the 770 - built-in PM8921 PMIC chip. 766 + built-in PM8xxx PMIC chips. 771 767 772 - This is required if your board has a PM8921 and uses its features, 768 + This is required if your board has a PM8xxx and uses its features, 773 769 such as: MPPs, GPIOs, regulators, interrupts, and PWM. 774 770 775 - Say M here if you want to include support for PM8921 chip as a module. 776 - This will build a module called "pm8921-core". 771 + Say M here if you want to include support for PM8xxx chips as a 772 + module. This will build a module called "pm8xxx-core". 777 773 778 774 config MFD_QCOM_RPM 779 775 tristate "Qualcomm Resource Power Manager (RPM)"
+1 -1
drivers/mfd/Makefile
··· 172 172 173 173 obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o 174 174 obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o 175 - obj-$(CONFIG_MFD_PM8921_CORE) += pm8921-core.o ssbi.o 175 + obj-$(CONFIG_MFD_PM8XXX) += qcom-pm8xxx.o ssbi.o 176 176 obj-$(CONFIG_MFD_QCOM_RPM) += qcom_rpm.o 177 177 obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o 178 178 obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o
+21 -21
drivers/mfd/pm8921-core.c drivers/mfd/qcom-pm8xxx.c
··· 53 53 #define REG_HWREV 0x002 /* PMIC4 revision */ 54 54 #define REG_HWREV_2 0x0E8 /* PMIC4 revision 2 */ 55 55 56 - #define PM8921_NR_IRQS 256 56 + #define PM8XXX_NR_IRQS 256 57 57 58 58 struct pm_irq_chip { 59 59 struct regmap *regmap; ··· 308 308 .reg_write = ssbi_reg_write 309 309 }; 310 310 311 - static const struct of_device_id pm8921_id_table[] = { 311 + static const struct of_device_id pm8xxx_id_table[] = { 312 312 { .compatible = "qcom,pm8018", }, 313 313 { .compatible = "qcom,pm8058", }, 314 314 { .compatible = "qcom,pm8921", }, 315 315 { } 316 316 }; 317 - MODULE_DEVICE_TABLE(of, pm8921_id_table); 317 + MODULE_DEVICE_TABLE(of, pm8xxx_id_table); 318 318 319 - static int pm8921_probe(struct platform_device *pdev) 319 + static int pm8xxx_probe(struct platform_device *pdev) 320 320 { 321 321 struct regmap *regmap; 322 322 int irq, rc; 323 323 unsigned int val; 324 324 u32 rev; 325 325 struct pm_irq_chip *chip; 326 - unsigned int nirqs = PM8921_NR_IRQS; 326 + unsigned int nirqs = PM8XXX_NR_IRQS; 327 327 328 328 irq = platform_get_irq(pdev, 0); 329 329 if (irq < 0) ··· 384 384 return rc; 385 385 } 386 386 387 - static int pm8921_remove_child(struct device *dev, void *unused) 387 + static int pm8xxx_remove_child(struct device *dev, void *unused) 388 388 { 389 389 platform_device_unregister(to_platform_device(dev)); 390 390 return 0; 391 391 } 392 392 393 - static int pm8921_remove(struct platform_device *pdev) 393 + static int pm8xxx_remove(struct platform_device *pdev) 394 394 { 395 395 int irq = platform_get_irq(pdev, 0); 396 396 struct pm_irq_chip *chip = platform_get_drvdata(pdev); 397 397 398 - device_for_each_child(&pdev->dev, NULL, pm8921_remove_child); 398 + device_for_each_child(&pdev->dev, NULL, pm8xxx_remove_child); 399 399 irq_set_chained_handler_and_data(irq, NULL, NULL); 400 400 irq_domain_remove(chip->irqdomain); 401 401 402 402 return 0; 403 403 } 404 404 405 - static struct platform_driver pm8921_driver = { 406 - .probe = pm8921_probe, 407 - .remove = pm8921_remove, 405 + static struct platform_driver pm8xxx_driver = { 406 + .probe = pm8xxx_probe, 407 + .remove = pm8xxx_remove, 408 408 .driver = { 409 - .name = "pm8921-core", 410 - .of_match_table = pm8921_id_table, 409 + .name = "pm8xxx-core", 410 + .of_match_table = pm8xxx_id_table, 411 411 }, 412 412 }; 413 413 414 - static int __init pm8921_init(void) 414 + static int __init pm8xxx_init(void) 415 415 { 416 - return platform_driver_register(&pm8921_driver); 416 + return platform_driver_register(&pm8xxx_driver); 417 417 } 418 - subsys_initcall(pm8921_init); 418 + subsys_initcall(pm8xxx_init); 419 419 420 - static void __exit pm8921_exit(void) 420 + static void __exit pm8xxx_exit(void) 421 421 { 422 - platform_driver_unregister(&pm8921_driver); 422 + platform_driver_unregister(&pm8xxx_driver); 423 423 } 424 - module_exit(pm8921_exit); 424 + module_exit(pm8xxx_exit); 425 425 426 426 MODULE_LICENSE("GPL v2"); 427 - MODULE_DESCRIPTION("PMIC 8921 core driver"); 427 + MODULE_DESCRIPTION("PMIC 8xxx core driver"); 428 428 MODULE_VERSION("1.0"); 429 - MODULE_ALIAS("platform:pm8921-core"); 429 + MODULE_ALIAS("platform:pm8xxx-core");