Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chen Jiahao and committed by
Mark Brown
252b9116 9e8925eb

+3 -3
+3 -3
drivers/regulator/tps6286x-regulator.c
··· 84 84 85 85 static const struct regulator_desc tps6286x_reg = { 86 86 .name = "tps6286x", 87 - .of_match = of_match_ptr("SW"), 87 + .of_match = "SW", 88 88 .owner = THIS_MODULE, 89 89 .ops = &tps6286x_regulator_ops, 90 90 .of_map_mode = tps6286x_of_map_mode, 91 - .regulators_node = of_match_ptr("regulators"), 91 + .regulators_node = "regulators", 92 92 .type = REGULATOR_VOLTAGE, 93 93 .n_voltages = ((TPS6286X_MAX_MV - TPS6286X_MIN_MV) / TPS6286X_STEP_MV) + 1, 94 94 .min_uV = TPS6286X_MIN_MV * 1000, ··· 148 148 .driver = { 149 149 .name = "tps6286x", 150 150 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 151 - .of_match_table = of_match_ptr(tps6286x_dt_ids), 151 + .of_match_table = tps6286x_dt_ids, 152 152 }, 153 153 .probe = tps6286x_i2c_probe, 154 154 .id_table = tps6286x_i2c_id,