drm/rockchip: lvds: improve error handling in helper functions
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 24 Dec 2019 14:38:56 +0000 (15:38 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Jan 2020 11:43:13 +0000 (12:43 +0100)
commit2258d53a6696eec6a294af5627c45c8aafe001a8
tree7b572fe09d15af51d64b6ab0e982c0eeacfb3551
parent9b5cbdbb93d6578bc27fd55ad51186e1411ce9f1
drm/rockchip: lvds: improve error handling in helper functions

Return errors instead of returning void from internal helpers. When
these helpers are called, check the returned value and print an error
message in this case and not blindly continue.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20191224143900.23567-8-miquel.raynal@bootlin.com
drivers/gpu/drm/rockchip/rockchip_lvds.c