RISCV: config: tizen_visionfive2: Disable JH7110 crypto driver
[platform/kernel/linux-starfive.git] / drivers / iio / frequency / admv1013.c
index 6355c1f..9292307 100644 (file)
@@ -351,9 +351,9 @@ static int admv1013_update_mixer_vgate(struct admv1013_state *st)
        if (vcm < 0)
                return vcm;
 
-       if (vcm < 1800000)
+       if (vcm <= 1800000)
                mixer_vgate = (2389 * vcm / 1000000 + 8100) / 100;
-       else if (vcm > 1800000 && vcm < 2600000)
+       else if (vcm > 1800000 && vcm <= 2600000)
                mixer_vgate = (2375 * vcm / 1000000 + 125) / 100;
        else
                return -EINVAL;