Beispiel #1
0
static int
speedy_panel_unblank(struct msm_mddi_bridge_platform_data *bridge_data,
                     struct msm_mddi_client_data *client_data)
{
    B(KERN_DEBUG "%s\n", __func__);
    client_data->auto_hibernate(client_data, 0);
    hr_msleep(50);
    client_data->remote_write(client_data, 0x24, 0x5300);
    client_data->remote_write(client_data, 0x0A, 0x22C0);
    speedy_backlight_switch(LED_FULL);
    client_data->auto_hibernate(client_data, 1);
    return 0;
}
static int
speedy_panel_blank(struct msm_mddi_bridge_platform_data *bridge_data,
			struct msm_mddi_client_data *client_data)
{
	B(KERN_DEBUG "%s\n", __func__);
	client_data->auto_hibernate(client_data, 0);
	/* set dim off for performance */
	client_data->remote_write(client_data, 0x0, 0x5300);
	speedy_backlight_switch(LED_OFF);
	client_data->remote_write(client_data, 0, 0x2800);
	client_data->remote_write(client_data, 0, 0x1000);
	client_data->auto_hibernate(client_data, 1);
	return 0;
}