aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-max77693.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/extcon/extcon-max77693.c')
-rw-r--r--drivers/extcon/extcon-max77693.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 8f3c947b0029..b56bdaa27d4b 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -38,7 +38,7 @@
38 * extcon-max77693 driver use 'default_init_data' to bring up base operation 38 * extcon-max77693 driver use 'default_init_data' to bring up base operation
39 * of MAX77693 MUIC device. 39 * of MAX77693 MUIC device.
40 */ 40 */
41struct max77693_reg_data default_init_data[] = { 41static struct max77693_reg_data default_init_data[] = {
42 { 42 {
43 /* STATUS2 - [3]ChgDetRun */ 43 /* STATUS2 - [3]ChgDetRun */
44 .addr = MAX77693_MUIC_REG_STATUS2, 44 .addr = MAX77693_MUIC_REG_STATUS2,
@@ -258,7 +258,7 @@ static int max77693_muic_set_debounce_time(struct max77693_muic_info *info,
258 CONTROL3_ADCDBSET_MASK); 258 CONTROL3_ADCDBSET_MASK);
259 if (ret) { 259 if (ret) {
260 dev_err(info->dev, "failed to set ADC debounce time\n"); 260 dev_err(info->dev, "failed to set ADC debounce time\n");
261 return -EAGAIN; 261 return ret;
262 } 262 }
263 break; 263 break;
264 default: 264 default:
@@ -294,7 +294,7 @@ static int max77693_muic_set_path(struct max77693_muic_info *info,
294 MAX77693_MUIC_REG_CTRL1, ctrl1, COMP_SW_MASK); 294 MAX77693_MUIC_REG_CTRL1, ctrl1, COMP_SW_MASK);
295 if (ret < 0) { 295 if (ret < 0) {
296 dev_err(info->dev, "failed to update MUIC register\n"); 296 dev_err(info->dev, "failed to update MUIC register\n");
297 return -EAGAIN; 297 return ret;
298 } 298 }
299 299
300 if (attached) 300 if (attached)
@@ -307,7 +307,7 @@ static int max77693_muic_set_path(struct max77693_muic_info *info,
307 CONTROL2_LOWPWR_MASK | CONTROL2_CPEN_MASK); 307 CONTROL2_LOWPWR_MASK | CONTROL2_CPEN_MASK);
308 if (ret < 0) { 308 if (ret < 0) {
309 dev_err(info->dev, "failed to update MUIC register\n"); 309 dev_err(info->dev, "failed to update MUIC register\n");
310 return -EAGAIN; 310 return ret;
311 } 311 }
312 312
313 dev_info(info->dev, 313 dev_info(info->dev,
@@ -1035,7 +1035,7 @@ static int max77693_muic_detect_accessory(struct max77693_muic_info *info)
1035 if (ret) { 1035 if (ret) {
1036 dev_err(info->dev, "failed to read MUIC register\n"); 1036 dev_err(info->dev, "failed to read MUIC register\n");
1037 mutex_unlock(&info->mutex); 1037 mutex_unlock(&info->mutex);
1038 return -EINVAL; 1038 return ret;
1039 } 1039 }
1040 1040
1041 adc = max77693_muic_get_cable_type(info, MAX77693_CABLE_GROUP_ADC, 1041 adc = max77693_muic_get_cable_type(info, MAX77693_CABLE_GROUP_ADC,