From eab4fed0606191ab2db05272d5d20bb786893008 Mon Sep 17 00:00:00 2001 From: Alexander Winkowski Date: Sat, 4 Nov 2023 18:00:00 +0000 Subject: [PATCH] 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 --- drivers/power/supply/qcom/smb5-iio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/qcom/smb5-iio.c b/drivers/power/supply/qcom/smb5-iio.c index 0935331c8506..071f4df29b83 100644 --- a/drivers/power/supply/qcom/smb5-iio.c +++ b/drivers/power/supply/qcom/smb5-iio.c @@ -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);