static int spade_sharp_panel_blank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	spade_adjust_backlight(0);
	atomic_set(&lcm_init_done, 0);
        return 0;
}
Ejemplo n.º 2
0
static int spade_auo_panel_unblank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	atomic_set(&lcm_init_done, 1);
	spade_adjust_backlight(last_val);

	return 0;
}
static void spade_brightness_set(struct led_classdev *led_cdev,
		enum led_brightness val)
{
	if (atomic_read(&lcm_init_done) == 0) {
		last_val = val ? val : last_val;
		LCMDBG(":lcm not ready, val=%d\n", val);
		return;
	}
	led_cdev->brightness = spade_adjust_backlight(val);
}
static int spade_auo_n90_panel_blank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	spade_adjust_backlight(0);
	atomic_set(&lcm_init_done, 0);
	mutex_lock(&panel_lock);
	lcm_auo_write_seq(auo_n90_uninit_seq, ARRAY_SIZE(auo_n90_uninit_seq));
	mutex_unlock(&panel_lock);

	return 0;
}
static int spade_auo_n90_panel_unblank(struct msm_lcdc_panel_ops *ops)
{
	LCMDBG("\n");
	if (color_enhancement == 0) {
		spade_mdp_color_enhancement(mdp_pdata.mdp_dev);
		color_enhancement = 1;
	}
	atomic_set(&lcm_init_done, 1);
	spade_adjust_backlight(last_val);

	return 0;
}