コード例 #1
0
ファイル: mipi_jdi_OTM1282B.c プロジェクト: NXij/cm11-p6
static int mipi_jdi_panel_remove(struct platform_device *pdev)
{
	struct k3_fb_data_type *k3fd = NULL;

	BUG_ON(pdev == NULL);

	k3fd = (struct k3_fb_data_type *)platform_get_drvdata(pdev);
	/*BUG_ON(k3fd == NULL);*/
	if (!k3fd) {
		return 0;
	}

	/* tk vcc finit */
	if (g_touchkey_enable == true) {
		vcc_cmds_tx(pdev, jdi_tk_vcc_finit_cmds, \
			ARRAY_SIZE(jdi_tk_vcc_finit_cmds));
	}


	/* lcd vcc finit */
	vcc_cmds_tx(pdev, jdi_lcd_vcc_finit_cmds, \
		ARRAY_SIZE(jdi_lcd_vcc_finit_cmds));

	/* tp vcc finit */
	vcc_cmds_tx(pdev, jdi_tp_vcc_finit_cmds, \
		ARRAY_SIZE(jdi_tp_vcc_finit_cmds));

	jdi_sysfs_deinit(pdev);

	return 0;
}
コード例 #2
0
static int mipi_jdi_panel_remove(struct platform_device *pdev)
{
	struct balong_fb_data_type *balongfd = NULL;

	BUG_ON(pdev == NULL);

	balongfd = (struct balong_fb_data_type *)platform_get_drvdata(pdev);
	BUG_ON(balongfd == NULL);

	if (balongfd->panel_info.bl_set_type & BL_SET_BY_PWM) {
		PWM_CLK_PUT(&(balongfd->panel_info));
	}

	LCD_VCC_PUT(&(balongfd->panel_info));
    set_pinctrl_lowpower(&(balongfd->panel_info));
	jdi_sysfs_deinit(pdev);

	return 0;
}