Squash the disable() and unprepare() functions, since there is no need for
host adjustments between them.

Signed-off-by: Svyatoslav Ryhel <[email protected]>
---
 drivers/gpu/drm/panel/panel-lg-lh400wv3.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-lg-lh400wv3.c 
b/drivers/gpu/drm/panel/panel-lg-lh400wv3.c
index 63efeb434be13..c6834e5312089 100644
--- a/drivers/gpu/drm/panel/panel-lg-lh400wv3.c
+++ b/drivers/gpu/drm/panel/panel-lg-lh400wv3.c
@@ -115,7 +115,7 @@ static int lg_lh400wv3_enable(struct drm_panel *panel)
        return 0;
 }
 
-static int lg_lh400wv3_disable(struct drm_panel *panel)
+static int lg_lh400wv3_unprepare(struct drm_panel *panel)
 {
        struct lg_lh400wv3 *priv = to_lg_lh400wv3(panel);
 
@@ -126,13 +126,6 @@ static int lg_lh400wv3_disable(struct drm_panel *panel)
        panel_dbi_command(priv, 0xc1, 0x01);
        usleep_range(10000, 11000);
 
-       return 0;
-}
-
-static int lg_lh400wv3_unprepare(struct drm_panel *panel)
-{
-       struct lg_lh400wv3 *priv = to_lg_lh400wv3(panel);
-
        gpiod_set_value_cansleep(priv->reset_gpio, 1);
        regulator_bulk_disable(ARRAY_SIZE(lg_lh400wv3_supplies), 
priv->supplies);
 
@@ -175,7 +168,6 @@ static int lg_lh400wv3_get_modes(struct drm_panel *panel,
 static const struct drm_panel_funcs lg_lh400wv3_panel_funcs = {
        .prepare = lg_lh400wv3_prepare,
        .enable = lg_lh400wv3_enable,
-       .disable = lg_lh400wv3_disable,
        .unprepare = lg_lh400wv3_unprepare,
        .get_modes = lg_lh400wv3_get_modes,
 };
-- 
2.53.0

Reply via email to