Commit 252b9116 authored by Chen Jiahao's avatar Chen Jiahao Committed by Mark Brown

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: default avatarChen Jiahao <chenjiahao16@huawei.com>
Link: https://lore.kernel.org/r/20230809100428.2669817-8-chenjiahao16@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9e8925eb
...@@ -84,11 +84,11 @@ static unsigned int tps6286x_of_map_mode(unsigned int mode) ...@@ -84,11 +84,11 @@ static unsigned int tps6286x_of_map_mode(unsigned int mode)
static const struct regulator_desc tps6286x_reg = { static const struct regulator_desc tps6286x_reg = {
.name = "tps6286x", .name = "tps6286x",
.of_match = of_match_ptr("SW"), .of_match = "SW",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.ops = &tps6286x_regulator_ops, .ops = &tps6286x_regulator_ops,
.of_map_mode = tps6286x_of_map_mode, .of_map_mode = tps6286x_of_map_mode,
.regulators_node = of_match_ptr("regulators"), .regulators_node = "regulators",
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.n_voltages = ((TPS6286X_MAX_MV - TPS6286X_MIN_MV) / TPS6286X_STEP_MV) + 1, .n_voltages = ((TPS6286X_MAX_MV - TPS6286X_MIN_MV) / TPS6286X_STEP_MV) + 1,
.min_uV = TPS6286X_MIN_MV * 1000, .min_uV = TPS6286X_MIN_MV * 1000,
...@@ -148,7 +148,7 @@ static struct i2c_driver tps6286x_regulator_driver = { ...@@ -148,7 +148,7 @@ static struct i2c_driver tps6286x_regulator_driver = {
.driver = { .driver = {
.name = "tps6286x", .name = "tps6286x",
.probe_type = PROBE_PREFER_ASYNCHRONOUS, .probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(tps6286x_dt_ids), .of_match_table = tps6286x_dt_ids,
}, },
.probe = tps6286x_i2c_probe, .probe = tps6286x_i2c_probe,
.id_table = tps6286x_i2c_id, .id_table = tps6286x_i2c_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment