]> www.infradead.org Git - users/willy/pagecache.git/commit
net: stmmac: imx: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Jan 2025 13:32:45 +0000 (14:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 02:04:27 +0000 (18:04 -0800)
commit1e38b398b671b450dbd6a2570fcccf08f37c73e5
tree371f49b2c5a07241654611064e6aca4ecf865e2f
parent621c88a3927636493e22fbd2c2a51836c7a0e5e7
net: stmmac: imx: 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-3-3423889935f7@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c