mmc: hi3798mv200: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Jan 2025 18:54:09 +0000 (19:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jan 2025 15:36:13 +0000 (16:36 +0100)
commit1931cd769a087cfea2f2e1f74769001a7a3be9f1
treec2655f1934d09554e0c442e258f3f727883d4f14
parent57a217f193f3b77161a307dd9963ac19d66a17d1
mmc: hi3798mv200: 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/all/20250111185410.183896-1-krzysztof.kozlowski@linaro.org>/
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-hi3798mv200.c