]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fbdev: omapfb: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Jan 2025 13:46:34 +0000 (14:46 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 12 Jan 2025 17:12:35 +0000 (18:12 +0100)
commit3a48b38f48433accfc4e90409d88b9876ed74c8a
tree0d9ae9be3d9d505edb56463bd93c1db092b7106d
parent65ea3b4d383649cc6682abc9fdc60eb9b3b34a34
fbdev: omapfb: 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>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/omap2/omapfb/dss/dispc.c