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

Commit 5c7b441b authored by Shilpa Suresh's avatar Shilpa Suresh Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-fg-gen3: Remove unused variable



Remove unused variable present in "fg_esr_sw_timer" function
and make the cpr3_debug() log in a single line for clarity.

Change-Id: I2cb411fd99dd6be76b7f36ef8a341eb9da96afde
Signed-off-by: default avatarShilpa Suresh <sbsure@codeaurora.org>
parent 4f9559a8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2475,7 +2475,6 @@ static void fg_esr_sw_work(struct work_struct *work)
static enum alarmtimer_restart
	fg_esr_sw_timer(struct alarm *alarm, ktime_t now)
{
	union power_supply_propval pval = {0, };
	struct fg_dev *fg = container_of(alarm,
			struct fg_dev, esr_sw_timer);

+2 −4
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2296,9 +2296,7 @@ static bool _cpr3_adjust_target_quotients(struct cpr3_regulator *vreg,
					prev_quot = vreg->corner[i].target_quot[j];
					vreg->corner[i].target_quot[j]
						+= quot_adjust;
					cpr3_debug(vreg, "adjusted corner %d
						RO%d target quot %s: %u -->
						%u (%d uV)\n",
					cpr3_debug(vreg, "adjusted corner %d RO%d target quot %s: %u --> %u (%d uV)\n",
						i, j, label, prev_quot,
						vreg->corner[i].target_quot[j],
						volt_adjust[i]);