static int mipi_s6d6aa0_lcd_off(struct platform_device *pdev)
{
	int ret;
	struct msm_fb_data_type *mfd;

	mfd = platform_get_drvdata(pdev);
	if (!mfd)
		return -ENODEV;
	if (mfd->key != MFD_KEY)
		return -EINVAL;

	ret = mipi_s6d6aa0_disp_off(mfd);
	if (ret)
		dev_err(&pdev->dev, "%s: Display off failed\n", __func__);

	return ret;
}
Ejemplo n.º 2
0
static int mipi_s6d6aa0_lcd_off(struct platform_device *pdev)
{
	int ret;
	struct msm_fb_data_type *mfd;
	struct mipi_dsi_data *dsi_data;

	mfd = platform_get_drvdata(pdev);
	if (!mfd)
		return -ENODEV;
	if (mfd->key != MFD_KEY)
		return -EINVAL;

	dsi_data = platform_get_drvdata(mfd->panel_pdev);
	mutex_lock(&esd_lock);
	/*Stop the ESD check when panel off*/
	dsi_data->esd_check_enable = false;

	ret = mipi_s6d6aa0_disp_off(mfd);
	if (ret)
		dev_err(&pdev->dev, "%s: Display off failed\n", __func__);
	mutex_unlock(&esd_lock);
	return ret;
}