drm/bridge: sii902x: Refactor init code into separate function
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Tue, 20 Oct 2020 22:14:57 +0000 (17:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:27:18 +0000 (18:27 +0100)
commitc0c34c5ab715594142e9a21364e5ea97b1c84d1a
treedb2e01369dd77303febe46e1856c43631577cb77
parent0a34addcdbd9e03e3f3d09bcd5a1719d90b2d637
drm/bridge: sii902x: Refactor init code into separate function

commit 91b5e26731c5d409d6134603afc061617639933e upstream.

Separate the hardware initialization code from setting up the data
structures and parsing the device tree. The purpose of this change is
to provide a single exit point and avoid a waterfall of 'goto's in
the subsequent patch.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201020221501.260025-1-mr.nuke.me@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/bridge/sii902x.c