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

Commit 35f4c35a authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

msm: camera: Fix 32-bit compilation issues.



Fix type mismatch for do_div arguments.

Change-Id: Ia9968166976f2d43dfc5bc0ac7c1442288d55e43
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent ccf21f85
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -79,8 +79,10 @@ static const struct msm_jpegdma_block msm_jpegdma_block_sel[] = {
 */
static inline long long jpegdma_do_div(long long num, long long den)
{
	do_div(num, den);
	return num;
	uint64_t n = (uint64_t) num;

	do_div(n, (uint32_t)den);
	return n;
}

/*
@@ -919,7 +921,7 @@ static int msm_jpegdma_hw_add_plane_offset(struct msm_jpegdma_plane *plane,
static int msm_jpegdma_hw_calc_config(struct msm_jpegdma_size_config *size_cfg,
	struct msm_jpegdma_plane *plane)
{
	u64 scale_hor, scale_ver, phase;
	u64 scale_hor, scale_ver, phase = 0;
	u64 in_width, in_height;
	u64 out_width, out_height;
	struct msm_jpegdma_config *config;