]> www.infradead.org Git - users/hch/misc.git/commit
net: stmmac: stm32: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Jan 2025 13:32:47 +0000 (14:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 02:04:28 +0000 (18:04 -0800)
commit6e9c6882f9ef6edcbc5585122ef318fa5d369fc9
tree88b66af4af2ed8a972e0b52cca92033d5e1a3aa2
parent92ef3e4b3a5b56c6e8b332a99be3fa0b557c2f5e
net: stmmac: stm32: Use syscon_regmap_lookup_by_phandle_args

Use syscon_regmap_lookup_by_phandle_args() which is a wrapper over
syscon_regmap_lookup_by_phandle() combined with getting the syscon
argument.  Except simpler code this annotates within one line that given
phandle has arguments, so grepping for code would be easier.

There is also no real benefit in printing errors on missing syscon
argument, because this is done just too late: runtime check on
static/build-time data.  Dtschema and Devicetree bindings offer the
static/build-time check for this already.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250112-syscon-phandle-args-net-v1-5-3423889935f7@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c