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

Commit 311a758b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Fix number accuracy for backlight to brightness"

parents edf460ac 1a657f90
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 {