summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-24 02:00:38 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-24 02:00:38 -0700
commit8a86657b1df69bb6c7354dfe83a1de9b505b00bf (patch)
tree9d19aa0609fc941dc0233b872e7649d0435ca72e
parenta5091bfd65fd65ab988df67dd459c74afebb4db2 (diff)
parentaba9ed2d3e786003cd675184a1309a3034ae1bea (diff)
Merge "leds: qpnp-flash-v2: Fix compilation issue for 32-bit kernel"
-rw-r--r--drivers/leds/leds-qpnp-flash-v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-qpnp-flash-v2.c b/drivers/leds/leds-qpnp-flash-v2.c
index 2f7529814cd9..0cae5d2e5263 100644
--- a/drivers/leds/leds-qpnp-flash-v2.c
+++ b/drivers/leds/leds-qpnp-flash-v2.c
@@ -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)