regulator: lp87565: Remove redundant of_match_ptr() macros
authorChen Jiahao <chenjiahao16@huawei.com>
Wed, 9 Aug 2023 10:04:23 +0000 (10:04 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 9 Aug 2023 11:52:41 +0000 (12:52 +0100)
Since the driver lp87565-regulator depends on CONFIG_OF,
it makes no difference to wrap of_match_ptr() here.

Remove of_match_ptr() macros to clean it up.

Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230809100428.2669817-3-chenjiahao16@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp87565-regulator.c

index bdb60d8..61ee5cf 100644 (file)
@@ -29,8 +29,8 @@ enum LP87565_regulator_id {
                        .name                   = _name,                \
                        .supply_name            = _of "-in",            \
                        .id                     = _id,                  \
-                       .of_match               = of_match_ptr(_of),    \
-                       .regulators_node        = of_match_ptr("regulators"),\
+                       .of_match               = _of,                  \
+                       .regulators_node        = "regulators",         \
                        .ops                    = &_ops,                \
                        .n_voltages             = _n,                   \
                        .type                   = REGULATOR_VOLTAGE,    \