Messages in this thread | | | Subject | Re: [PATCH v2 1/2] iio: gyro: Add driver support for ADXRS290 | From | Nishant Malpani <> | Date | Wed, 22 Jul 2020 02:44:00 +0530 |
| |
On 22/07/20 2:05 am, Nishant Malpani wrote:
[...]
>>> + return IIO_VAL_INT; >>> + default: >>> + return -EINVAL; >>> + } >> >> ... >> >>> + *vals = (const int *)adxrs290_lpf_3db_freq_tbl; >> >> Why casting? >> > adxrs290_lpf_3db_freq_tbl is of type (int *)[2], right? Without the > casting, an incompatible-pointer-type error is thrown.
Sorry, the above is incorrect. adxrs290_lpf_3db_freq_tbl is a pointer to an array of two ints.
[...]
Regards, Nishant Malpani
| |