]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
of: property: stop creating callback for each pinctrl-N property
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 19 Dec 2025 12:18:11 +0000 (13:18 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 4 Feb 2026 02:58:10 +0000 (20:58 -0600)
commitb96b485755ca0e12e3981f14b789315fb41713ee
tree1450e011ef61f7daa2081106315683fbf5d0ae3f
parentd289cb7fcefe41a54d8f9c6d0e0947f5f82b15c6
of: property: stop creating callback for each pinctrl-N property

While not a lot in the grand scheme of things, this eliminates 8*2
pointless function calls for almost every property present in the
device tree (the exception are the few properties that were already
matched). It also seems to reduce .text by about 1.5K - why gcc
decides to inline parse_prop_cells() in every instantiation I don't know.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://patch.msgid.link/20251219121811.390988-1-linux@rasmusvillemoes.dk
[robh: Drop the commit msg comment that >9 doesn't work as it would]
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/property.c