* [PATCH 0/2] mfd: convert to subsys_platform_driver()
@ 2026-11-07 0:20 Brian Masney
2026-11-07 0:20 ` [PATCH 1/2] mfd: qcom-pm8xxx: " Brian Masney
2026-11-07 0:20 ` [PATCH 2/2] mfd: tps65911-comparator: " Brian Masney
0 siblings, 2 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:20 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-arm-msm, mfd, linux-kernel, Brian Masney
Reduce boilerplate code in these drivers and convert them over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
Brian Masney (2):
mfd: qcom-pm8xxx: convert to subsys_platform_driver()
mfd: tps65911-comparator: convert to subsys_platform_driver()
drivers/mfd/qcom-pm8xxx.c | 12 +-----------
drivers/mfd/tps65911-comparator.c | 12 +-----------
2 files changed, 2 insertions(+), 22 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261106-mfd-subsys-63dc5bb82f83
Best regards,
--
Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] mfd: qcom-pm8xxx: convert to subsys_platform_driver()
2026-11-07 0:20 [PATCH 0/2] mfd: convert to subsys_platform_driver() Brian Masney
@ 2026-11-07 0:20 ` Brian Masney
2026-11-07 0:20 ` [PATCH 2/2] mfd: tps65911-comparator: " Brian Masney
1 sibling, 0 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:20 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-arm-msm, mfd, linux-kernel, Brian Masney
Reduce boilerplate code in this driver and convert it over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
drivers/mfd/qcom-pm8xxx.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c
index 0cf374c015ce..14de2a5e6ba6 100644
--- a/drivers/mfd/qcom-pm8xxx.c
+++ b/drivers/mfd/qcom-pm8xxx.c
@@ -594,17 +594,7 @@ static struct platform_driver pm8xxx_driver = {
},
};
-static int __init pm8xxx_init(void)
-{
- return platform_driver_register(&pm8xxx_driver);
-}
-subsys_initcall(pm8xxx_init);
-
-static void __exit pm8xxx_exit(void)
-{
- platform_driver_unregister(&pm8xxx_driver);
-}
-module_exit(pm8xxx_exit);
+subsys_platform_driver(pm8xxx_driver);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("PMIC 8xxx core driver");
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] mfd: tps65911-comparator: convert to subsys_platform_driver()
2026-11-07 0:20 [PATCH 0/2] mfd: convert to subsys_platform_driver() Brian Masney
2026-11-07 0:20 ` [PATCH 1/2] mfd: qcom-pm8xxx: " Brian Masney
@ 2026-11-07 0:20 ` Brian Masney
1 sibling, 0 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:20 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-arm-msm, mfd, linux-kernel, Brian Masney
Reduce boilerplate code in this driver and convert it over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
drivers/mfd/tps65911-comparator.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/mfd/tps65911-comparator.c b/drivers/mfd/tps65911-comparator.c
index cc8545a972bc..db787a4c765a 100644
--- a/drivers/mfd/tps65911-comparator.c
+++ b/drivers/mfd/tps65911-comparator.c
@@ -157,17 +157,7 @@ static struct platform_driver tps65911_comparator_driver = {
.remove = tps65911_comparator_remove,
};
-static int __init tps65911_comparator_init(void)
-{
- return platform_driver_register(&tps65911_comparator_driver);
-}
-subsys_initcall(tps65911_comparator_init);
-
-static void __exit tps65911_comparator_exit(void)
-{
- platform_driver_unregister(&tps65911_comparator_driver);
-}
-module_exit(tps65911_comparator_exit);
+subsys_platform_driver(tps65911_comparator_driver);
MODULE_AUTHOR("Jorge Eduardo Candelaria <jedu@slimlogic.co.uk>");
MODULE_DESCRIPTION("TPS65911 comparator driver");
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-07 0:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 0:20 [PATCH 0/2] mfd: convert to subsys_platform_driver() Brian Masney
2026-11-07 0:20 ` [PATCH 1/2] mfd: qcom-pm8xxx: " Brian Masney
2026-11-07 0:20 ` [PATCH 2/2] mfd: tps65911-comparator: " Brian Masney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®