]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: reset: keystone: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Jan 2025 18:53:58 +0000 (19:53 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 15 Jan 2025 20:51:39 +0000 (21:51 +0100)
commit81312ea9b892e2c6989cce7274eca9f437ba6cf1
treed2711ab80cdd96996a2db18d35127d9227671817
parent2d678e3e1e1564780562614ebb099a1e8cbd025f
power: reset: keystone: 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://lore.kernel.org/r/20250111185358.183725-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/keystone-reset.c