Thread (9 messages) 9 messages, 2 authors, 2023-08-09
STALE1048d LANDED

[PATCH -next v2 5/7] regulator: mpq7920: Remove redundant of_match_ptr() macro

From: Chen Jiahao <hidden>
Date: 2023-08-09 10:06:00
Subsystem: monolithic power system pmic driver, the rest, voltage and current regulator framework · Maintainers: Saravanan Sekar, Linus Torvalds, Liam Girdwood, Mark Brown

Since the driver mpq7920 depends on CONFIG_OF,
it makes no difference to wrap of_match_ptr() here.

Remove the of_match_ptr() macro to clean it up.

Signed-off-by: Chen Jiahao <redacted>
---
 drivers/regulator/mpq7920.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/mpq7920.c b/drivers/regulator/mpq7920.c
index 4926c229109b..a670e09891e7 100644
--- a/drivers/regulator/mpq7920.c
+++ b/drivers/regulator/mpq7920.c
@@ -318,7 +318,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
 	.driver = {
 		.name = "mpq7920",
 		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
-		.of_match_table = of_match_ptr(mpq7920_of_match),
+		.of_match_table = mpq7920_of_match,
 	},
 	.probe = mpq7920_i2c_probe,
 	.id_table = mpq7920_id,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help