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?