(CR):[Kane]:[factory]Modify lcd suspend write faill issue
authorwangjiao <wangjiao1@huaqin.com>
Fri, 30 Nov 2018 06:54:44 +0000 (14:54 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:01 +0000 (17:30 +0800)
Change-Id: I51f21313d99154c1d7d49058a1330aa534545547
Signed-off-by: wangjiao <wangjiao1@huaqin.com>
drivers/video/fbdev/exynos/dpu20/panels/hix83112a_mipi_lcd.c
drivers/video/fbdev/exynos/dpu20/panels/nov36672a_mipi_lcd.c

index d9ae5ffe78496566f2e586b2789843b78b1daf51..0c840672c5c04555a918249f2da75c9877fc1fca 100755 (executable)
@@ -172,6 +172,9 @@ static int hix83112a_set_brightness(struct backlight_device *bd)
 
        dsim = get_dsim_drvdata(0);
 
+       if (!IS_DSIM_ON_STATE(dsim))
+               return 0;
+
        if (brightness < MIN_BRIGHTNESS || brightness > MAX_BRIGHTNESS) {
                pr_err("Brightness should be in the range of 0 ~ 255\n");
                return -EINVAL;
index 77f21a28e0cdc672b3f62def6eb3f367299e0192..9d20152037e4eeb4c14e8f8740aeb796c1f31399 100755 (executable)
@@ -162,6 +162,9 @@ static int nov36672a_set_brightness(struct backlight_device *bd)
 
        dsim = get_dsim_drvdata(0);
 
+       if (!IS_DSIM_ON_STATE(dsim))
+               return 0;
+
        if (brightness < MIN_BRIGHTNESS || brightness > MAX_BRIGHTNESS) {
                pr_err("Brightness should be in the range of 0 ~ 255\n");
                return -EINVAL;