]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: stih407-usb: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Jan 2025 18:54:07 +0000 (19:54 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2025 17:13:16 +0000 (22:43 +0530)
commit13c1eb1b4bd169f820188c62acaa1f96677284b1
treebb8ecfc5e7e5446a0a3d10f93bc9207699d452b1
parentf4fb9c4d7f94dabef4abf2209cf840dd1c9ca11e
phy: stih407-usb: 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>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20250111185407.183855-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/st/phy-stih407-usb.c