Commit 3d494bba authored by Mohammad Jamal's avatar Mohammad Jamal Committed by Greg Kroah-Hartman

ad525x_dpot:Remove break after return

This patch removes the break statements present after return
Signed-off-by: default avatarMohammad Jamal <md.jamalmohiuddin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15584555
...@@ -334,7 +334,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) ...@@ -334,7 +334,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
case DPOT_UID(AD5246_ID): case DPOT_UID(AD5246_ID):
case DPOT_UID(AD5247_ID): case DPOT_UID(AD5247_ID):
return dpot_write_d8(dpot, value); return dpot_write_d8(dpot, value);
break;
case DPOT_UID(AD5245_ID): case DPOT_UID(AD5245_ID):
case DPOT_UID(AD5241_ID): case DPOT_UID(AD5241_ID):
...@@ -346,7 +345,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) ...@@ -346,7 +345,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ? ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ?
0 : DPOT_AD5282_RDAC_AB; 0 : DPOT_AD5282_RDAC_AB;
return dpot_write_r8d8(dpot, ctrl, value); return dpot_write_r8d8(dpot, ctrl, value);
break;
case DPOT_UID(AD5171_ID): case DPOT_UID(AD5171_ID):
case DPOT_UID(AD5273_ID): case DPOT_UID(AD5273_ID):
if (reg & DPOT_ADDR_OTP) { if (reg & DPOT_ADDR_OTP) {
...@@ -356,7 +354,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) ...@@ -356,7 +354,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
ctrl = DPOT_AD5273_FUSE; ctrl = DPOT_AD5273_FUSE;
} }
return dpot_write_r8d8(dpot, ctrl, value); return dpot_write_r8d8(dpot, ctrl, value);
break;
case DPOT_UID(AD5172_ID): case DPOT_UID(AD5172_ID):
case DPOT_UID(AD5173_ID): case DPOT_UID(AD5173_ID):
ctrl = ((reg & DPOT_RDAC_MASK) == DPOT_RDAC0) ? 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,7 +365,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
ctrl |= DPOT_AD5170_2_3_FUSE; ctrl |= DPOT_AD5170_2_3_FUSE;
} }
return dpot_write_r8d8(dpot, ctrl, value); return dpot_write_r8d8(dpot, ctrl, value);
break;
case DPOT_UID(AD5170_ID): case DPOT_UID(AD5170_ID):
if (reg & DPOT_ADDR_OTP) { if (reg & DPOT_ADDR_OTP) {
tmp = dpot_read_r8d16(dpot, tmp); tmp = dpot_read_r8d16(dpot, tmp);
...@@ -377,7 +373,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) ...@@ -377,7 +373,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
ctrl = DPOT_AD5170_2_3_FUSE; ctrl = DPOT_AD5170_2_3_FUSE;
} }
return dpot_write_r8d8(dpot, ctrl, value); return dpot_write_r8d8(dpot, ctrl, value);
break;
case DPOT_UID(AD5272_ID): case DPOT_UID(AD5272_ID):
case DPOT_UID(AD5274_ID): case DPOT_UID(AD5274_ID):
dpot_write_r8d8(dpot, DPOT_AD5270_1_2_4_CTRLREG << 2, 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,7 +387,6 @@ static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
return dpot_write_r8d8(dpot, (DPOT_AD5270_1_2_4_RDAC << 2) | return dpot_write_r8d8(dpot, (DPOT_AD5270_1_2_4_RDAC << 2) |
(value >> 8), value & 0xFF); (value >> 8), value & 0xFF);
break;
default: default:
if (reg & DPOT_ADDR_CMD) if (reg & DPOT_ADDR_CMD)
return dpot_write_d8(dpot, reg); return dpot_write_d8(dpot, reg);
......
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