summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max97236.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/max97236.c')
-rw-r--r--sound/soc/codecs/max97236.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sound/soc/codecs/max97236.c b/sound/soc/codecs/max97236.c
index 0b21a2db08f1..713521bfcf57 100644
--- a/sound/soc/codecs/max97236.c
+++ b/sound/soc/codecs/max97236.c
@@ -730,13 +730,6 @@ static int max97236_jacksw_active(struct max97236_priv *max97236)
#endif
int ret;
- /* Overwrite above code using board id */
- if (board_info.board_id == BOARD_E1690) {
- test_value = 0;
- } else { /* ERS */
- test_value = 4;
- }
-
regmap_read(max97236->regmap, M97236_REG_00_STATUS1, &reg);
ret = (reg & M97236_JACKSW_MASK) == test_value;
@@ -1161,12 +1154,6 @@ static int test_jack_presence(struct max97236_priv *max97236, int delay)
#else
test_value = 0;
#endif
- /* Overwrite above code using board id */
- if (board_info.board_id == BOARD_E1690) {
- test_value = 0;
- } else { /* ERS */
- test_value = 4;
- }
if ((reg & M97236_JACKSW_MASK) == test_value) {
schedule_delayed_work(&max97236->jack_work,