Re: [PATCH v2 1/2] iio: gyro: Add driver support for ADXRS290

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux