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

Commit 844d97c0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: fix compiler issue due to improper braces or indentation"

parents 4137883d a326beb0
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2013-2015, 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, 2018-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
@@ -1407,12 +1407,13 @@ static int smb1360_set_minimum_usb_current(struct smb1360_chip *chip)
		if (rc)
			pr_err("Couldn't set ICL mA rc=%d\n", rc);

		if (!(chip->workaround_flags & WRKRND_USB100_FAIL))
		if (!(chip->workaround_flags & WRKRND_USB100_FAIL)) {
			rc = smb1360_masked_write(chip, CMD_IL_REG,
					USB_CTRL_MASK, USB_100_BIT);
			if (rc)
				pr_err("Couldn't configure for USB100 rc=%d\n",
									rc);
		}
	} else {
		pr_debug("USB min current set to 500mA\n");
		rc = smb1360_masked_write(chip, CMD_IL_REG,