summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorChen Jiahao <chenjiahao16@huawei.com>2023-08-09 10:04:23 +0000
committerMark Brown <broonie@kernel.org>2023-08-09 12:52:41 +0100
commitf410cfe8be5788cf09a3f32ce39946c339297821 (patch)
tree21cbd2584ce02ad8f5f70bc165ccafeffd7131f6 /drivers/regulator
parent3a6d93eb5f27f313ce0f3fa3fb171cd0732c4878 (diff)
regulator: lp87565: Remove redundant of_match_ptr() macros
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/lp87565-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c
index bdb60d8a7f3d..61ee5cf3f241 100644
--- a/drivers/regulator/lp87565-regulator.c
+++ b/drivers/regulator/lp87565-regulator.c
@@ -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, \