On 03/12/2018 01:06 PM, Alexandru Ardelean wrote: [...] > + for (i = 0; i < ARRAY_SIZE(ad7791_sample_freq_avail); i++) { > + if (ad7791_sample_freq_avail[i][0] == val && > + ad7791_sample_freq_avail[i][1] == val2) > + break; > + } Unrelated to this patch. But we should really add a helper function for looking up entries in these val,val2 arrays. [...] -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html