fbdev: sh_mipi_dsi: Use the sh_mipi_dsi_info channel field
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 14 Aug 2012 10:21:17 +0000 (12:21 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 21 Nov 2012 14:50:00 +0000 (15:50 +0100)
Get the LCDC channel selector from the sh_mipi_dsi_info channel field
directly instead of accessing the LCDC platform data through the
lcd_chan field.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/sh_mipi_dsi.c

index 3951fdae5f6847694f97627638f6d64857554247..7f6ce6515b6d5a99168142d433b8301e6a92c523 100644 (file)
@@ -369,7 +369,7 @@ static int sh_mipi_setup(struct sh_mipi *mipi, struct sh_mipi_dsi_info *pdata)
        /* setup LCD panel */
 
        /* cf. drivers/video/omap/lcd_mipid.c */
-       sh_mipi_dcs(ch->chan, MIPI_DCS_EXIT_SLEEP_MODE);
+       sh_mipi_dcs(pdata->channel, MIPI_DCS_EXIT_SLEEP_MODE);
        msleep(120);
        /*
         * [7] - Page Address Mode
@@ -381,11 +381,11 @@ static int sh_mipi_setup(struct sh_mipi *mipi, struct sh_mipi_dsi_info *pdata)
         * [1] - Flip Horizontal
         * [0] - Flip Vertical
         */
-       sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_ADDRESS_MODE, 0x00);
+       sh_mipi_dcs_param(pdata->channel, MIPI_DCS_SET_ADDRESS_MODE, 0x00);
        /* cf. set_data_lines() */
-       sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_PIXEL_FORMAT,
+       sh_mipi_dcs_param(pdata->channel, MIPI_DCS_SET_PIXEL_FORMAT,
                          pixfmt << 4);
-       sh_mipi_dcs(ch->chan, MIPI_DCS_SET_DISPLAY_ON);
+       sh_mipi_dcs(pdata->channel, MIPI_DCS_SET_DISPLAY_ON);
 
        /* Enable timeout counters */
        iowrite32(0x00000f00, base + DSICTRL);
This page took 0.025475 seconds and 5 git commands to generate.