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: mcp16502: Remove redundant of_match_ptr() macros

Since the driver mcp16502 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-5-chenjiahao16@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Jiahao and committed by
Mark Brown
3988795e 656ed746

+3 -3
+3 -3
drivers/regulator/mcp16502.c
··· 110 110 #define MCP16502_REGULATOR(_name, _id, _ranges, _ops, _ramp_table) \ 111 111 [_id] = { \ 112 112 .name = _name, \ 113 - .regulators_node = of_match_ptr("regulators"), \ 113 + .regulators_node = "regulators", \ 114 114 .id = _id, \ 115 115 .ops = &(_ops), \ 116 116 .type = REGULATOR_VOLTAGE, \ ··· 119 119 .linear_ranges = _ranges, \ 120 120 .linear_min_sel = VDD_LOW_SEL, \ 121 121 .n_linear_ranges = ARRAY_SIZE(_ranges), \ 122 - .of_match = of_match_ptr(_name), \ 122 + .of_match = _name, \ 123 123 .of_map_mode = mcp16502_of_map_mode, \ 124 124 .vsel_reg = (((_id) + 1) << 4), \ 125 125 .vsel_mask = MCP16502_VSEL, \ ··· 587 587 .driver = { 588 588 .name = "mcp16502-regulator", 589 589 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 590 - .of_match_table = of_match_ptr(mcp16502_ids), 590 + .of_match_table = mcp16502_ids, 591 591 #ifdef CONFIG_PM 592 592 .pm = &mcp16502_pm_ops, 593 593 #endif