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

Commit a902997f authored by Kamen Kirov's avatar Kamen Kirov
Browse files

msm: camera: jpeg_10: Fix incorrect clock rate set



Fixes a problem on 64bit targets with incorrect integer
assignment causing attempts to set erroneous clock rates.

Change-Id: I132a8d594cbce19ec142ae44eb8b15ad38c0f3b0
Signed-off-by: default avatarKamen Kirov <kkirov@codeaurora.org>
parent f24aee9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ static int msm_jpeg_get_clk_info(struct msm_jpeg_device *jpeg_dev,
	}
	for (i = 0; i < count; i++) {
		jpeg_8x_clk_info[i].clk_rate =
			(rates[i] == 0) ? -1 : rates[i];
			(rates[i] == 0) ? (long) -1 : (long) rates[i];
		JPEG_DBG("clk_rate[%d] = %ld\n",
			i, jpeg_8x_clk_info[i].clk_rate);
	}