]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
fbdev: sh_mobile_lcdc: Remove fb_info parameter to display_on operation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 18 Sep 2011 10:26:50 +0000 (12:26 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Mar 2012 21:40:51 +0000 (22:40 +0100)
The parameter is unused, remove it.

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

index ad09a05afd5f882e2ce3b656540015e13fd75286..1ede247547f9c7a2b36d488e1025fbc0185e7991 100644 (file)
@@ -394,8 +394,7 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
        return 0;
 }
 
-static int mipi_display_on(struct sh_mobile_lcdc_entity *entity,
-                          struct fb_info *info)
+static int mipi_display_on(struct sh_mobile_lcdc_entity *entity)
 {
        struct sh_mipi *mipi = to_sh_mipi(entity);
        struct sh_mipi_dsi_info *pdata = mipi->pdev->dev.platform_data;
index bd885ee78d54d6de0e3f048881e543bbd2b48809..c22e123ec401736481d23c62dc542f3f2360c9f2 100644 (file)
@@ -1000,16 +1000,11 @@ static irqreturn_t sh_hdmi_hotplug(int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-/* locking:    called with info->lock held, or before register_framebuffer() */
-static int sh_hdmi_display_on(struct sh_mobile_lcdc_entity *entity,
-                             struct fb_info *info)
+static int sh_hdmi_display_on(struct sh_mobile_lcdc_entity *entity)
 {
-       /*
-        * info is guaranteed to be valid, when we are called, because our
-        * FB_EVENT_FB_UNBIND notify is also called with info->lock held
-        */
        struct sh_hdmi *hdmi = entity_to_sh_hdmi(entity);
        struct sh_mobile_lcdc_chan *ch = entity->lcdc;
+       struct fb_info *info = ch->info;
 
        dev_dbg(hdmi->dev, "%s(%p): state %x\n", __func__, hdmi, info->state);
 
@@ -1156,7 +1151,7 @@ static void sh_hdmi_edid_work_fn(struct work_struct *work)
                                 */
                                info->var.width = hdmi->var.width;
                                info->var.height = hdmi->var.height;
-                               sh_hdmi_display_on(&hdmi->entity, info);
+                               sh_hdmi_display_on(&hdmi->entity);
                        } else {
                                /* New monitor or have to wake up */
                                fb_set_suspend(info, 0);
index 1ecc71ec41ff30d4858c4fb1c2ace8d1f9e7db84..03ee3826fb6222cd9fee619c37de61c91fcd2452 100644 (file)
@@ -338,7 +338,7 @@ static void sh_mobile_lcdc_display_on(struct sh_mobile_lcdc_chan *ch)
        struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg.panel_cfg;
 
        if (ch->tx_dev) {
-               if (ch->tx_dev->ops->display_on(ch->tx_dev, ch->info) < 0)
+               if (ch->tx_dev->ops->display_on(ch->tx_dev) < 0)
                        return;
        }
 
index 36cd5649598b97d5312a4e8bfb482ec90977cb2e..b2cb8e6d098c6d7de4a804f326619f9fc36ace3d 100644 (file)
@@ -23,8 +23,7 @@ struct sh_mobile_lcdc_chan;
 
 struct sh_mobile_lcdc_entity_ops {
        /* Display */
-       int (*display_on)(struct sh_mobile_lcdc_entity *entity,
-                         struct fb_info *info);
+       int (*display_on)(struct sh_mobile_lcdc_entity *entity);
        void (*display_off)(struct sh_mobile_lcdc_entity *entity);
 };