Merge "leds: qpnp-flash-v2: Fix compilation issue for 32-bit kernel"
This commit is contained in:
commit
8a86657b1d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
avail_flash_ua, ocv_uv, ibat_now, rbatt_uohm,
|
||||||
led->trigger_lmh);
|
led->trigger_lmh);
|
||||||
return min(FLASH_LED_MAX_TOTAL_CURRENT_MA,
|
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)
|
static int qpnp_flash_led_calc_thermal_current_lim(struct qpnp_flash_led *led)
|
||||||
|
|
Loading…
Add table
Reference in a new issue