Merge remote-tracking branch 'asoc/topic/const' into asoc-next
[muen/linux.git] / sound / soc / codecs / msm8916-wcd-analog.c
index 4aa878d29098f5fa09ce08e90e9991f7cd6e6fa9..549c269acc7dfd0a084c333f08076b77390d1c79 100644 (file)
@@ -949,7 +949,7 @@ static irqreturn_t mbhc_btn_release_irq_handler(int irq, void *arg)
                u32 val = snd_soc_read(codec, CDC_A_MBHC_RESULT_1);
 
                /* check if its BTN0 thats released */
-               if ((val >= 0) && !(val & CDC_A_MBHC_RESULT_1_BTN_RESULT_MASK))
+               if ((val != -1) && !(val & CDC_A_MBHC_RESULT_1_BTN_RESULT_MASK))
                        priv->mbhc_btn0_pressed = false;
 
        } else {