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

Commit 1a657f90 authored by Ch Ganesh Kumar's avatar Ch Ganesh Kumar
Browse files

msm: mdss: Fix number accuracy for backlight to brightness



Fix the number accuracy when convert backlight to brightness.

CRs-Fixed: 2054751
Change-Id: I5d30b65e795ad84d2ba897a9d5be2a8bb36f32eb
Signed-off-by: default avatarCh Ganesh Kumar <chganesh@codeaurora.org>
parent 69156e98
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -246,8 +246,8 @@ struct msm_mdp_interface {
				do_div(out, 2 * max_bright);\
				} while (0)
#define MDSS_BL_TO_BRIGHT(out, v, bl_max, max_bright) do {\
				out = ((v) * (max_bright));\
				do_div(out, bl_max);\
				out = (2 * ((v) * (max_bright)) + (bl_max));\
				do_div(out, 2 * bl_max);\
				} while (0)

struct mdss_fb_file_info {