Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b8866b4 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

fbdev: msm: Fix compilation issues in FB driver



Fix compilation issues in framebuffer and postproc
files in display framebuffer driver.

Change-Id: Ife150bd95f17c6321714fcdab1ba1da661e3680f
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent c37b9826
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2136,7 +2136,7 @@ void mdss_fb_free_fb_ion_memory(struct msm_fb_data_type *mfd)

int mdss_fb_alloc_fb_ion_memory(struct msm_fb_data_type *mfd, size_t fb_size)
{
	int rc = 0, fd = 0;
	int rc = 0;
	void *vaddr;
	int domain;

+4 −6
Original line number Diff line number Diff line
@@ -3132,12 +3132,10 @@ static int pp_ad_calc_bl(struct msm_fb_data_type *mfd, int bl_in, int *bl_out,
		return -EPERM;
	}

	if (!ad->bl_mfd || !ad->bl_mfd->panel_info ||
		!ad->bl_att_lut) {
		pr_err("Invalid ad info: bl_mfd = 0x%pK, ad->bl_mfd->panel_info = 0x%pK, bl_att_lut = 0x%pK\n",
	if (!ad->bl_mfd || !ad->bl_mfd->panel_info) {
		pr_err("Invalid ad info: bl_mfd = 0x%pK, ad->bl_mfd->panel_info = 0x%pK\n",
			ad->bl_mfd,
			(!ad->bl_mfd) ? NULL : ad->bl_mfd->panel_info,
			ad->bl_att_lut);
			(!ad->bl_mfd) ? NULL : ad->bl_mfd->panel_info);
		mutex_unlock(&ad->lock);
		return -EINVAL;
	}
@@ -6672,7 +6670,7 @@ static int is_valid_calib_dspp_addr(char __iomem *ptr)
			ret = MDP_PP_OPS_READ | MDP_PP_OPS_WRITE;
			break;
		/* Dither enable/disable */
		} else if ((ptr == base + MDSS_MDP_REG_DSPP_DITHER_DEPTH)) {
		} else if (ptr == (base + MDSS_MDP_REG_DSPP_DITHER_DEPTH)) {
			ret = MDP_PP_OPS_READ | MDP_PP_OPS_WRITE;
			break;
		/* Six zone and mem color */