Skip to content

Commit 252b911

Browse files
Chen Jiahaobroonie
authored andcommitted
regulator: tps6286x-regulator: Remove redundant of_match_ptr() macros
Since the driver tps6286x-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-8-chenjiahao16@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9e8925e commit 252b911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/tps6286x-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ static unsigned int tps6286x_of_map_mode(unsigned int mode)
8484

8585
static const struct regulator_desc tps6286x_reg = {
8686
.name = "tps6286x",
87-
.of_match = of_match_ptr("SW"),
87+
.of_match = "SW",
8888
.owner = THIS_MODULE,
8989
.ops = &tps6286x_regulator_ops,
9090
.of_map_mode = tps6286x_of_map_mode,
91-
.regulators_node = of_match_ptr("regulators"),
91+
.regulators_node = "regulators",
9292
.type = REGULATOR_VOLTAGE,
9393
.n_voltages = ((TPS6286X_MAX_MV - TPS6286X_MIN_MV) / TPS6286X_STEP_MV) + 1,
9494
.min_uV = TPS6286X_MIN_MV * 1000,
@@ -148,7 +148,7 @@ static struct i2c_driver tps6286x_regulator_driver = {
148148
.driver = {
149149
.name = "tps6286x",
150150
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
151-
.of_match_table = of_match_ptr(tps6286x_dt_ids),
151+
.of_match_table = tps6286x_dt_ids,
152152
},
153153
.probe = tps6286x_i2c_probe,
154154
.id_table = tps6286x_i2c_id,

0 commit comments

Comments
 (0)