of: base: make small of_parse_phandle() variants static inline
authorMichael Walle <michael@walle.cc>
Tue, 18 Jan 2022 17:35:02 +0000 (18:35 +0100)
committerRob Herring <robh@kernel.org>
Thu, 20 Jan 2022 18:55:26 +0000 (12:55 -0600)
commit66a8f7f04979f4ad739085f01d99c8caf620b4f5
treecb5d10046659054e0240763e1f84fa003cfe7e41
parent25e20b505e0e2454ff6713c0cef4bcdd66dffb95
of: base: make small of_parse_phandle() variants static inline

Make all the smaller variants of the of_parse_phandle() static inline.
This also let us remove the empty function stubs if CONFIG_OF is not
defined.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Walle <michael@walle.cc>
[robh: move index < 0 check into __of_parse_phandle_with_args]
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220118173504.2867523-2-michael@walle.cc
drivers/of/base.c
include/linux/of.h