]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/omap/dss: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 14 Jan 2025 14:58:40 +0000 (15:58 +0100)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 24 Jan 2025 07:20:48 +0000 (09:20 +0200)
commit07efb761b672753a5ce911e41d2be7c171b4f18f
tree335f3af6d638a0748c54340c74b32b4c5173e219
parent2654d4711375ec32ffb8c83644e3af716d009b63
drm/omap/dss: 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.

Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250114145840.505459-2-krzysztof.kozlowski@linaro.org
drivers/gpu/drm/omapdrm/dss/dss.c