|
@@ -57,7 +57,7 @@ icst307_khz_to_vco(const struct icst307_params *p, unsigned long freq)
|
|
break;
|
|
break;
|
|
} while (i < ARRAY_SIZE(idx2s));
|
|
} while (i < ARRAY_SIZE(idx2s));
|
|
|
|
|
|
- if (i > ARRAY_SIZE(idx2s))
|
|
|
|
|
|
+ if (i >= ARRAY_SIZE(idx2s))
|
|
return vco;
|
|
return vco;
|
|
|
|
|
|
vco.s = idx2s[i];
|
|
vco.s = idx2s[i];
|
|
@@ -119,7 +119,7 @@ icst307_ps_to_vco(const struct icst307_params *p, unsigned long period)
|
|
break;
|
|
break;
|
|
} while (i < ARRAY_SIZE(idx2s));
|
|
} while (i < ARRAY_SIZE(idx2s));
|
|
|
|
|
|
- if (i > ARRAY_SIZE(idx2s))
|
|
|
|
|
|
+ if (i >= ARRAY_SIZE(idx2s))
|
|
return vco;
|
|
return vco;
|
|
|
|
|
|
vco.s = idx2s[i];
|
|
vco.s = idx2s[i];
|