aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammad Jamal <md.jamalmohiuddin@gmail.com>2014-12-17 20:47:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-12 08:04:12 -0500
commit3d494bba92c4665ab34056bf86a14e02b0e1db22 (patch)
treed5a5d3aec8b2f2a0c34e351c650d33eb27a92043
parent1558455582623b67492f630d11b94d5e4c506e5f (diff)
ad525x_dpot:Remove break after return
This patch removes the break statements present after return Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/ad525x_dpot.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/misc/ad525x_dpot.c b/drivers/misc/ad525x_dpot.c
index 32f907245409..15e88078ba1e 100644
--- a/drivers/misc/ad525x_dpot.c
+++ b/drivers/misc/ad525x_dpot.c
@@ -334,7 +334,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
334 case DPOT_UID(AD5246_ID): 334 case DPOT_UID(AD5246_ID):
335 case DPOT_UID(AD5247_ID): 335 case DPOT_UID(AD5247_ID):
336 return dpot_write_d8(dpot, value); 336 return dpot_write_d8(dpot, value);
337 break;
338 337
339 case DPOT_UID(AD5245_ID): 338 case DPOT_UID(AD5245_ID):
340 case DPOT_UID(AD5241_ID): 339 case DPOT_UID(AD5241_ID):
@@ -346,7 +345,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
346 ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ? 345 ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ?
347 0 : DPOT_AD5282_RDAC_AB; 346 0 : DPOT_AD5282_RDAC_AB;
348 return dpot_write_r8d8(dpot, ctrl, value); 347 return dpot_write_r8d8(dpot, ctrl, value);
349 break;
350 case DPOT_UID(AD5171_ID): 348 case DPOT_UID(AD5171_ID):
351 case DPOT_UID(AD5273_ID): 349 case DPOT_UID(AD5273_ID):
352 if (reg & DPOT_ADDR_OTP) { 350 if (reg & DPOT_ADDR_OTP) {
@@ -356,7 +354,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
356 ctrl = DPOT_AD5273_FUSE; 354 ctrl = DPOT_AD5273_FUSE;
357 } 355 }
358 return dpot_write_r8d8(dpot, ctrl, value); 356 return dpot_write_r8d8(dpot, ctrl, value);
359 break;
360 case DPOT_UID(AD5172_ID): 357 case DPOT_UID(AD5172_ID):
361 case DPOT_UID(AD5173_ID): 358 case DPOT_UID(AD5173_ID):
362 ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ? 359 ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ?
@@ -368,7 +365,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
368 ctrl |= DPOT_AD5170_2_3_FUSE; 365 ctrl |= DPOT_AD5170_2_3_FUSE;
369 } 366 }
370 return dpot_write_r8d8(dpot, ctrl, value); 367 return dpot_write_r8d8(dpot, ctrl, value);
371 break;
372 case DPOT_UID(AD5170_ID): 368 case DPOT_UID(AD5170_ID):
373 if (reg & DPOT_ADDR_OTP) { 369 if (reg & DPOT_ADDR_OTP) {
374 tmp = dpot_read_r8d16(dpot, tmp); 370 tmp = dpot_read_r8d16(dpot, tmp);
@@ -377,7 +373,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
377 ctrl = DPOT_AD5170_2_3_FUSE; 373 ctrl = DPOT_AD5170_2_3_FUSE;
378 } 374 }
379 return dpot_write_r8d8(dpot, ctrl, value); 375 return dpot_write_r8d8(dpot, ctrl, value);
380 break;
381 case DPOT_UID(AD5272_ID): 376 case DPOT_UID(AD5272_ID):
382 case DPOT_UID(AD5274_ID): 377 case DPOT_UID(AD5274_ID):
383 dpot_write_r8d8(dpot, DPOT_AD5270_1_2_4_CTRLREG << 2, 378 dpot_write_r8d8(dpot, DPOT_AD5270_1_2_4_CTRLREG << 2,
@@ -392,7 +387,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
392 387
393 return dpot_write_r8d8(dpot, (DPOT_AD5270_1_2_4_RDAC << 2) | 388 return dpot_write_r8d8(dpot, (DPOT_AD5270_1_2_4_RDAC << 2) |
394 (value >> 8), value & 0xFF); 389 (value >> 8), value & 0xFF);
395 break;
396 default: 390 default:
397 if (reg & DPOT_ADDR_CMD) 391 if (reg & DPOT_ADDR_CMD)
398 return dpot_write_d8(dpot, reg); 392 return dpot_write_d8(dpot, reg);