Exemplo n.º 1
0
void s3cfb_early_suspend(struct early_suspend *h)
{
	struct s3cfb_global *info = container_of(h,struct s3cfb_global,early_suspend);
	struct s3c_platform_fb *pdata = to_fb_plat(info->dev);	
	struct platform_device *pdev = to_platform_device(info->dev);

	printk("s3cfb_early_suspend is called\n");

#if defined (CONFIG_FB_S3C_LTE480WV) || defined(CONFIG_FB_S3C_UT10GM) || defined(CONFIG_FB_S3C_UT7GM) || defined(CONFIG_FB_URBETTER_SERIAL) || defined(CONFIG_FB_S3C_UTAUO104)
	if (pdata->backlight_off)
		pdata->backlight_off(pdev);
#endif

#if defined (CONFIG_FB_S3C_TL2796)
	tl2796_ldi_disable();
#endif

	s3cfb_display_off(info);
	if (pdata->clk_off)
		pdata->clk_off(pdev, &fbdev->clock);

#ifdef ENABLE_SMDKV210_REGULATOR //urbetter
	/* ldo6 regulator off */
	regulator_disable(lcd_regulator);
#endif
	return ;
}
Exemplo n.º 2
0
void tl2796_early_suspend(struct early_suspend *h)
{
	struct s5p_lcd *lcd = container_of(h, struct s5p_lcd,	early_suspend);

	tl2796_ldi_disable(lcd);

	return;
}
Exemplo n.º 3
0
static int __devexit tl2796_remove(struct spi_device *spi)
{
	struct s5p_lcd *lcd = spi_get_drvdata(spi);

	unregister_early_suspend(&lcd->early_suspend);
	backlight_device_unregister(lcd->bl_dev);
	tl2796_ldi_disable(lcd);
	kfree(lcd);

	return 0;
}