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

Unverified Commit eab4fed0 authored by Alexander Winkowski's avatar Alexander Winkowski Committed by Michael Bestas
Browse files

power: supply: smb5-iio: Add missing braces in smb5_iio_get_prop()



Cross-checked with msm-5.15 tag. The change does not exist as a separate
commit and is squashed into the initial import.

Change-Id: I8ba245606f8b538c9bf3dbdc9dfb621fea721de8
Signed-off-by: default avatarAlexander Winkowski <dereference23@outlook.com>
parent 1ecb1c7f
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -26,11 +26,12 @@ int smb5_iio_get_prop(struct smb_charger *chg, int channel, int *val)
	switch (channel) {
	switch (channel) {
	/* USB */
	/* USB */
	case PSY_IIO_VOLTAGE_MAX_LIMIT:
	case PSY_IIO_VOLTAGE_MAX_LIMIT:
		if (chg->usbin_forced_max_uv)
		if (chg->usbin_forced_max_uv) {
			*val = chg->usbin_forced_max_uv;
			*val = chg->usbin_forced_max_uv;
		else
		} else {
			rc = smblib_get_prop_usb_voltage_max_design(chg, &pval);
			rc = smblib_get_prop_usb_voltage_max_design(chg, &pval);
			*val = pval.intval;
			*val = pval.intval;
		}
		break;
		break;
	case PSY_IIO_PD_CURRENT_MAX:
	case PSY_IIO_PD_CURRENT_MAX:
		*val = get_client_vote(chg->usb_icl_votable, PD_VOTER);
		*val = get_client_vote(chg->usb_icl_votable, PD_VOTER);