On 22/07/20 2:05 am, Nishant Malpani wrote: [...]
adxrs290_lpf_3db_freq_tbl is of type (int *)[2], right? Without the casting, an incompatible-pointer-type error is thrown.+ return IIO_VAL_INT; + default: + return -EINVAL; + }...+ *vals = (const int *)adxrs290_lpf_3db_freq_tbl;Why casting?
Sorry, the above is incorrect. adxrs290_lpf_3db_freq_tbl is a pointer to an array of two ints.
[...] Regards, Nishant Malpani