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