rtc: stm32: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Jan 2025 18:54:05 +0000 (19:54 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 13 Jan 2025 08:33:39 +0000 (09:33 +0100)
commit3f76ba88c3fda18dd71296aa87e775e56c29a3d5
tree213e7ebcd890ccc499c65f681b3355346b955b80
parent2a388ff22d2cbfc5cbd628ef085bdcd3b7dc64f5
rtc: 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://lore.kernel.org/r/20250111185405.183824-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c