sh_mobile_lcdc: Add display notify callback to sh_mobile_lcdc_chan
[sfrench/cifs-2.6.git] / drivers / video / sh_mobile_lcdcfb.h
index 6fb956c8e603ddfed5611bcb154c7135d2e8a3c1..e2eb7af438f78e44e25efd074b7a72bc906257a4 100644 (file)
@@ -30,6 +30,12 @@ struct sh_mobile_lcdc_entity_ops {
        void (*display_off)(struct sh_mobile_lcdc_entity *entity);
 };
 
+enum sh_mobile_lcdc_entity_event {
+       SH_MOBILE_LCDC_EVENT_DISPLAY_CONNECT,
+       SH_MOBILE_LCDC_EVENT_DISPLAY_DISCONNECT,
+       SH_MOBILE_LCDC_EVENT_DISPLAY_MODE,
+};
+
 struct sh_mobile_lcdc_entity {
        struct module *owner;
        const struct sh_mobile_lcdc_entity_ops *ops;
@@ -70,6 +76,10 @@ struct sh_mobile_lcdc_chan {
        unsigned long base_addr_y;
        unsigned long base_addr_c;
        unsigned int pitch;
+
+       int (*notify)(struct sh_mobile_lcdc_chan *ch,
+                     enum sh_mobile_lcdc_entity_event event,
+                     struct fb_var_screeninfo *var);
 };
 
 #endif