extcon: sm5502: Remove unneeded semicolon
Remove unneeded semicolon reported by coccinelle. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> [cw00.choi: Edit patch title and description] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
parent
4b28b25c30
commit
2ddf50a75d
@ -249,7 +249,7 @@ static int sm5502_muic_set_path(struct sm5502_muic_info *info,
|
|||||||
dev_err(info->dev, "Unknown DM_CON/DP_CON switch type (%d)\n",
|
dev_err(info->dev, "Unknown DM_CON/DP_CON switch type (%d)\n",
|
||||||
con_sw);
|
con_sw);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
};
|
}
|
||||||
|
|
||||||
switch (vbus_sw) {
|
switch (vbus_sw) {
|
||||||
case VBUSIN_SWITCH_OPEN:
|
case VBUSIN_SWITCH_OPEN:
|
||||||
@ -268,7 +268,7 @@ static int sm5502_muic_set_path(struct sm5502_muic_info *info,
|
|||||||
default:
|
default:
|
||||||
dev_err(info->dev, "Unknown VBUS switch type (%d)\n", vbus_sw);
|
dev_err(info->dev, "Unknown VBUS switch type (%d)\n", vbus_sw);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
};
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -357,13 +357,13 @@ static unsigned int sm5502_muic_get_cable_type(struct sm5502_muic_info *info)
|
|||||||
"cannot identify the cable type: adc(0x%x)\n",
|
"cannot identify the cable type: adc(0x%x)\n",
|
||||||
adc);
|
adc);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
};
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dev_err(info->dev,
|
dev_err(info->dev,
|
||||||
"failed to identify the cable type: adc(0x%x)\n", adc);
|
"failed to identify the cable type: adc(0x%x)\n", adc);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
};
|
}
|
||||||
|
|
||||||
return cable_type;
|
return cable_type;
|
||||||
}
|
}
|
||||||
@ -405,7 +405,7 @@ static int sm5502_muic_cable_handler(struct sm5502_muic_info *info,
|
|||||||
dev_dbg(info->dev,
|
dev_dbg(info->dev,
|
||||||
"cannot handle this cable_type (0x%x)\n", cable_type);
|
"cannot handle this cable_type (0x%x)\n", cable_type);
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
|
|
||||||
/* Change internal hardware path(DM_CON/DP_CON, VBUSIN) */
|
/* Change internal hardware path(DM_CON/DP_CON, VBUSIN) */
|
||||||
ret = sm5502_muic_set_path(info, con_sw, vbus_sw, attached);
|
ret = sm5502_muic_set_path(info, con_sw, vbus_sw, attached);
|
||||||
|
Loading…
Reference in New Issue
Block a user