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

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

authored by

Chen Jiahao and committed by
Mark Brown
3a6d93eb f321708d

+9 -9
+9 -9
drivers/regulator/da9121-regulator.c
··· 440 440 .of_match = "buck1", 441 441 .of_parse_cb = da9121_of_parse_cb, 442 442 .owner = THIS_MODULE, 443 - .regulators_node = of_match_ptr("regulators"), 443 + .regulators_node = "regulators", 444 444 .of_map_mode = da9121_map_mode, 445 445 .ops = &da9121_buck_ops, 446 446 .type = REGULATOR_VOLTAGE, ··· 465 465 .of_match = "buck1", 466 466 .of_parse_cb = da9121_of_parse_cb, 467 467 .owner = THIS_MODULE, 468 - .regulators_node = of_match_ptr("regulators"), 468 + .regulators_node = "regulators", 469 469 .of_map_mode = da9121_map_mode, 470 470 .ops = &da9121_buck_ops, 471 471 .type = REGULATOR_VOLTAGE, ··· 484 484 .of_match = "buck2", 485 485 .of_parse_cb = da9121_of_parse_cb, 486 486 .owner = THIS_MODULE, 487 - .regulators_node = of_match_ptr("regulators"), 487 + .regulators_node = "regulators", 488 488 .of_map_mode = da9121_map_mode, 489 489 .ops = &da9121_buck_ops, 490 490 .type = REGULATOR_VOLTAGE, ··· 506 506 .of_match = "buck1", 507 507 .of_parse_cb = da9121_of_parse_cb, 508 508 .owner = THIS_MODULE, 509 - .regulators_node = of_match_ptr("regulators"), 509 + .regulators_node = "regulators", 510 510 .of_map_mode = da9121_map_mode, 511 511 .ops = &da9121_buck_ops, 512 512 .type = REGULATOR_VOLTAGE, ··· 525 525 .of_match = "buck2", 526 526 .of_parse_cb = da9121_of_parse_cb, 527 527 .owner = THIS_MODULE, 528 - .regulators_node = of_match_ptr("regulators"), 528 + .regulators_node = "regulators", 529 529 .of_map_mode = da9121_map_mode, 530 530 .ops = &da9121_buck_ops, 531 531 .type = REGULATOR_VOLTAGE, ··· 546 546 .of_match = "buck1", 547 547 .of_parse_cb = da9121_of_parse_cb, 548 548 .owner = THIS_MODULE, 549 - .regulators_node = of_match_ptr("regulators"), 549 + .regulators_node = "regulators", 550 550 .of_map_mode = da9121_map_mode, 551 551 .ops = &da9121_buck_ops, 552 552 .type = REGULATOR_VOLTAGE, ··· 573 573 .of_match = "buck1", 574 574 .of_parse_cb = da9121_of_parse_cb, 575 575 .owner = THIS_MODULE, 576 - .regulators_node = of_match_ptr("regulators"), 576 + .regulators_node = "regulators", 577 577 .of_map_mode = da9121_map_mode, 578 578 .ops = &da9121_buck_ops, 579 579 .type = REGULATOR_VOLTAGE, ··· 593 593 .of_match = "buck1", 594 594 .of_parse_cb = da9121_of_parse_cb, 595 595 .owner = THIS_MODULE, 596 - .regulators_node = of_match_ptr("regulators"), 596 + .regulators_node = "regulators", 597 597 .of_map_mode = da9121_map_mode, 598 598 .ops = &da9121_buck_ops, 599 599 .type = REGULATOR_VOLTAGE, ··· 1195 1195 .driver = { 1196 1196 .name = "da9121", 1197 1197 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 1198 - .of_match_table = of_match_ptr(da9121_dt_ids), 1198 + .of_match_table = da9121_dt_ids, 1199 1199 }, 1200 1200 .probe = da9121_i2c_probe, 1201 1201 .remove = da9121_i2c_remove,