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: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
parent
1ecb1c7ff0
commit
eab4fed060
@ -26,11 +26,12 @@ int smb5_iio_get_prop(struct smb_charger *chg, int channel, int *val)
|
||||
switch (channel) {
|
||||
/* USB */
|
||||
case PSY_IIO_VOLTAGE_MAX_LIMIT:
|
||||
if (chg->usbin_forced_max_uv)
|
||||
if (chg->usbin_forced_max_uv) {
|
||||
*val = chg->usbin_forced_max_uv;
|
||||
else
|
||||
} else {
|
||||
rc = smblib_get_prop_usb_voltage_max_design(chg, &pval);
|
||||
*val = pval.intval;
|
||||
}
|
||||
break;
|
||||
case PSY_IIO_PD_CURRENT_MAX:
|
||||
*val = get_client_vote(chg->usb_icl_votable, PD_VOTER);
|
||||
|
Loading…
Reference in New Issue
Block a user