* [PATCH] mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()
@ 2025-11-28 9:11 Geert Uytterhoeven
2026-01-08 10:37 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-11-28 9:11 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-kernel, devicetree, linux-renesas-soc, Geert Uytterhoeven
As of commit c7fe3bbfd622b5ee ('mfd: core: Use of_property_read_reg() to
parse "reg"'), all code in mfd_match_of_node_to_dev() compiles fine when
CONFIG_OF is disabled. As the sole caller of this function is
protected by IS_ENABLED(CONFIG_OF), the #ifdef inside the function can
be removed to increase build coverage, without impacting code size.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/mfd/mfd-core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
index 7d14a1e7631ee8d5..6925bedddc80bbb7 100644
--- a/drivers/mfd/mfd-core.c
+++ b/drivers/mfd/mfd-core.c
@@ -100,7 +100,6 @@ static int mfd_match_of_node_to_dev(struct platform_device *pdev,
struct device_node *np,
const struct mfd_cell *cell)
{
-#if IS_ENABLED(CONFIG_OF)
struct mfd_of_node_entry *of_entry;
u64 of_node_addr;
@@ -133,7 +132,6 @@ static int mfd_match_of_node_to_dev(struct platform_device *pdev,
of_node_get(np);
device_set_node(&pdev->dev, of_fwnode_handle(np));
-#endif
return 0;
}
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH] mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()
2025-11-28 9:11 [PATCH] mfd: core: Improve compile coverage of mfd_match_of_node_to_dev() Geert Uytterhoeven
@ 2026-01-08 10:37 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2026-01-08 10:37 UTC (permalink / raw)
To: Lee Jones, Geert Uytterhoeven; +Cc: linux-kernel, devicetree, linux-renesas-soc
On Fri, 28 Nov 2025 10:11:27 +0100, Geert Uytterhoeven wrote:
> As of commit c7fe3bbfd622b5ee ('mfd: core: Use of_property_read_reg() to
> parse "reg"'), all code in mfd_match_of_node_to_dev() compiles fine when
> CONFIG_OF is disabled. As the sole caller of this function is
> protected by IS_ENABLED(CONFIG_OF), the #ifdef inside the function can
> be removed to increase build coverage, without impacting code size.
>
>
> [...]
Applied, thanks!
[1/1] mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()
commit: d0e9990ba058b25a3d8cf31ab0bb25571515ed34
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-08 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 9:11 [PATCH] mfd: core: Improve compile coverage of mfd_match_of_node_to_dev() Geert Uytterhoeven
2026-01-08 10:37 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®