Change-Id: I51f21313d99154c1d7d49058a1330aa534545547
Signed-off-by: wangjiao <wangjiao1@huaqin.com>
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;
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;