]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 28 Nov 2025 09:11:27 +0000 (10:11 +0100)
committerLee Jones <lee@kernel.org>
Thu, 22 Jan 2026 14:22:17 +0000 (14:22 +0000)
commit360bc3ae0d3fdcf5b234e8141ada93ecfb8b2a51
tree3828984132ded10c82df4b58838f5e0a913a4b2b
parented30d0296373e354f35ffc14558f265934dfa790
mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()

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>
Link: https://patch.msgid.link/7b9a4a355c5da3fe812ead663285d05b64b84857.1764320964.git.geert+renesas@glider.be
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mfd-core.c