static int lcd_fb_event(struct notifier_block *nb, unsigned long val, void *v) { struct fb_event *event = v; if (strcmp(event->info->fix.id, "DISP3 BG")) { return 0; } switch (val) { case FB_EVENT_FB_REGISTERED: lcd_init_fb(event->info); lcd_poweron(); break; case FB_EVENT_BLANK: if ((event->info->var.xres != 240) || (event->info->var.yres != 400)) { break; } if (*((int *)event->data) == FB_BLANK_UNBLANK) { lcd_poweron(); } else { lcd_poweroff(); } break; } return 0; }
static int lcd_fb_event(struct notifier_block *nb, unsigned long val, void *v) { struct fb_event *event = v; if (strcmp(event->info->fix.id, "mxc_elcdif_fb")) return 0; switch (val) { case FB_EVENT_FB_REGISTERED: lcd_init_fb(event->info); fb_show_logo(event->info, 0); lcd_poweron(); break; case FB_EVENT_BLANK: if ((event->info->var.xres != 800) || (event->info->var.yres != 480)) { break; } if (*((int *)event->data) == FB_BLANK_UNBLANK) lcd_poweron(); else lcd_poweroff(); break; } return 0; }
static int __devexit lcd_spi_remove(struct spi_device *spi) { fb_unregister_client(&nb); lcd_poweroff(); regulator_put(io_reg, &spi->dev); regulator_put(core_reg, &spi->dev); return 0; }
static int __devexit lcd_remove(struct device *dev) { fb_unregister_client(&nb); lcd_poweroff(); regulator_put(io_reg); regulator_put(core_reg); return 0; }
static int __devexit ch7026_remove(struct i2c_client *client) { fb_unregister_client(&nb); lcd_poweroff(); regulator_put(io_reg); regulator_put(core_reg); regulator_put(analog_reg); return 0; }
static int __devexit lcd_remove(struct platform_device *pdev) { struct mxc_lcd_platform_data *plat = pdev->dev.platform_data; fb_unregister_client(&nb); lcd_poweroff(); if (io_reg) regulator_put(io_reg); if (core_reg) regulator_put(core_reg); if (plat->put_pins) plat->put_pins(); return 0; }
static int lcd_fb_event(struct notifier_block *nb, unsigned long val, void *v) { struct fb_event *event = v; if (strcmp(event->info->fix.id, "DISP3 BG - DI1")) return 0; switch (val) { case FB_EVENT_FB_REGISTERED: lcd_init_fb(event->info); lcd_poweron(event->info); break; case FB_EVENT_BLANK: if (*((int *)event->data) == FB_BLANK_UNBLANK) lcd_poweron(event->info); else lcd_poweroff(); break; } return 0; }
static int lcd_suspend(struct spi_device *spi, pm_message_t message) { lcd_poweroff(); return 0; }