drm: bridge: it66121: Use devm_regulator_bulk_get_enable()
authorPaul Cercueil <paul@crapouillou.net>
Wed, 14 Dec 2022 12:58:13 +0000 (13:58 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Fri, 16 Dec 2022 10:38:30 +0000 (11:38 +0100)
commit334c8c1d3f2b0a77ef4f1577b3f5045564921c31
treea3e1713ea8ab1aa307c387e5ffdf9295b0e96fcd
parentd595bde8b9891e7ec6bc087c8fe0c758322d25ab
drm: bridge: it66121: Use devm_regulator_bulk_get_enable()

Simplify the code of the driver by using
devm_regulator_bulk_get_enable(), which will handle powering up the
regulators, and disabling them on probe error or module removal.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221214125821.12489-3-paul@crapouillou.net
drivers/gpu/drm/bridge/ite-it66121.c