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

Commit f725b622 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

backlight: qcom-spmi-wled: Fix a printk format compiler warning



 ./include/linux/kern_levels.h:5:18: error:
   format '%d' expects argument of type 'int', but argument 3 has type 'int64_t {aka long long int}

Change-Id: Ic0dedbad1a087d8ec75d97dabb839504aed27656
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 68fffd43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * Copyright (c) 2015, Sony Mobile Communications, AB.
 */
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt)	"WLED: %s: " fmt, __func__
@@ -1557,7 +1557,7 @@ static int wled_get_max_avail_current(struct led_classdev *led_cdev,

	v_safe_mv = ocv_mv - V_DROOP_MV - ((i_bat_ma * r_bat_mohms) / 1000);
	if (v_safe_mv <= 0) {
		pr_err("V_safe_mv: %d, cannot support flash\n", v_safe_mv);
		pr_err("V_safe_mv: %lld, cannot support flash\n", v_safe_mv);
		*max_current = 0;
		return 0;
	}