From 24d0924b716c87729adc9eca7ed7485e81fc087c Mon Sep 17 00:00:00 2001 From: mountaser Date: Fri, 12 Apr 2019 08:02:09 +0530 Subject: [PATCH] drivers: Removed soc_to_setpoint causing a build error while building with gcc after the latest upstream --- drivers/power/supply/qcom/qpnp-fg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/power/supply/qcom/qpnp-fg.c b/drivers/power/supply/qcom/qpnp-fg.c index d286603ea3e2..c4a9a0be9abc 100644 --- a/drivers/power/supply/qcom/qpnp-fg.c +++ b/drivers/power/supply/qcom/qpnp-fg.c @@ -2036,11 +2036,6 @@ static void fg_handle_battery_insertion(struct fg_chip *chip) } -static int soc_to_setpoint(int soc) -{ - return DIV_ROUND_CLOSEST(soc * 255, 100); -} - static void batt_to_setpoint_adc(int vbatt_mv, u8 *data) { int val;