From 8976700e4236e25cf478d1329f485ce6a6d2423f Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 5 Jan 2012 15:35:33 +0200 Subject: [PATCH] gfx: display: tc35876x: remove redundant switching of dpi_panel_on state The dev_priv->dpi_panel_on{,2} state is flipped accordingly, and on the correct pipe, by the caller of mdfld_dsi_configure_{up,down}, so don't do it again. Signed-off-by: Jani Nikula Acked-by: Pauli Nieminen Signed-off-by: Kirill A. Shutemov --- drivers/staging/mrst/drv/mdfld_dsi_dpi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/mrst/drv/mdfld_dsi_dpi.c b/drivers/staging/mrst/drv/mdfld_dsi_dpi.c index 0629983..ed89af3 100644 --- a/drivers/staging/mrst/drv/mdfld_dsi_dpi.c +++ b/drivers/staging/mrst/drv/mdfld_dsi_dpi.c @@ -214,8 +214,6 @@ static void mdfld_dsi_configure_down(struct mdfld_dsi_encoder * dsi_encoder, int mdfld_dsi_dpi_shut_down(dpi_output, pipe); //Send shut down command dsi_set_device_ready_state(dev, 0, pipe); //Clear device ready state - - dev_priv->dpi_panel_on = false; } static void mdfld_dsi_configure_up(struct mdfld_dsi_encoder * dsi_encoder, int pipe) @@ -242,8 +240,6 @@ static void mdfld_dsi_configure_up(struct mdfld_dsi_encoder * dsi_encoder, int p tc35876x_configure_lvds_bridge(dev); mdfld_dsi_dpi_turn_on(dpi_output, pipe); //Send turn on command dsi_set_pipe_plane_enable_state(dev, 1, pipe); //Enable plane and pipe - - dev_priv->dpi_panel_on = true; } /* End for TC35876X */ -- 2.7.4