lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13edcfdb-bb03-26e8-8392-e31a68b322cf@gmail.com>
Date:   Wed, 22 Jul 2020 02:44:00 +0530
From:   Nishant Malpani <nish.malpani25@...il.com>
To:     Andy Shevchenko <andy.shevchenko@...il.com>
Cc:     Jonathan Cameron <jic23@...nel.org>,
        "Bogdan, Dragos" <dragos.bogdan@...log.com>,
        darius.berghe@...log.com,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        linux-iio <linux-iio@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] iio: gyro: Add driver support for ADXRS290


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ