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

Commit aba9ed2d authored by ansharma's avatar ansharma
Browse files

leds: qpnp-flash-v2: Fix compilation issue for 32-bit kernel



Use div64_s64() instead of direct division required for 32-bit kernel
compilation.

CRs-Fixed: 1070141
Change-Id: I9f58a411c2a923c07fd27ab9dc5ac244e4b13a44
Signed-off-by: default avataransharma <ansharma@codeaurora.org>
parent 9e2d528d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,7 +594,7 @@ static int qpnp_flash_led_calc_max_current(struct qpnp_flash_led *led)
			avail_flash_ua, ocv_uv, ibat_now, rbatt_uohm,
			led->trigger_lmh);
	return min(FLASH_LED_MAX_TOTAL_CURRENT_MA,
			(int)(avail_flash_ua / MCONV));
			(int)(div64_s64(avail_flash_ua, MCONV)));
}

static int qpnp_flash_led_calc_thermal_current_lim(struct qpnp_flash_led *led)