These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / iio / adc / spear_adc.c
index c538237..712cae0 100644 (file)
@@ -191,8 +191,8 @@ static int spear_adc_write_raw(struct iio_dev *indio_dev,
        mutex_lock(&indio_dev->mlock);
 
        if ((val < SPEAR_ADC_CLK_MIN) ||
-               (val > SPEAR_ADC_CLK_MAX) ||
-               (val2 != 0)) {
+           (val > SPEAR_ADC_CLK_MAX) ||
+           (val2 != 0)) {
                ret = -EINVAL;
                goto out;
        }