Commit e9844b2c authored by Chanwoo Choi's avatar Chanwoo Choi Committed by Chanwoo Choi

extcon: arizona: Reorder the default statement to remove unnecessary warning

This patch reorders the default statement to remove unnecessary warning message
when info->hpdet_ip_version is higher than 2.
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
parent d8d09564
...@@ -477,9 +477,6 @@ static int arizona_hpdet_read(struct arizona_extcon_info *info) ...@@ -477,9 +477,6 @@ static int arizona_hpdet_read(struct arizona_extcon_info *info)
arizona_hpdet_b_ranges[range].factor_a); arizona_hpdet_b_ranges[range].factor_a);
break; break;
default:
dev_warn(arizona->dev, "Unknown HPDET IP revision %d\n",
info->hpdet_ip_version);
case 2: case 2:
if (!(val & ARIZONA_HP_DONE_B)) { if (!(val & ARIZONA_HP_DONE_B)) {
dev_err(arizona->dev, "HPDET did not complete: %x\n", dev_err(arizona->dev, "HPDET did not complete: %x\n",
...@@ -516,6 +513,12 @@ static int arizona_hpdet_read(struct arizona_extcon_info *info) ...@@ -516,6 +513,12 @@ static int arizona_hpdet_read(struct arizona_extcon_info *info)
arizona_hpdet_c_ranges[range].min); arizona_hpdet_c_ranges[range].min);
val = arizona_hpdet_c_ranges[range].min; val = arizona_hpdet_c_ranges[range].min;
} }
break;
default:
dev_warn(arizona->dev, "Unknown HPDET IP revision %d\n",
info->hpdet_ip_version);
return -EINVAL;
} }
dev_dbg(arizona->dev, "HP impedance %d ohms\n", val); dev_dbg(arizona->dev, "HP impedance %d ohms\n", val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment