All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishant Malpani <nish.malpani25@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	"Bogdan, Dragos" <dragos.bogdan@analog.com>,
	darius.berghe@analog.com,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-iio <linux-iio@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] iio: gyro: Add driver support for ADXRS290
Date: Wed, 22 Jul 2020 02:44:00 +0530	[thread overview]
Message-ID: <13edcfdb-bb03-26e8-8392-e31a68b322cf@gmail.com> (raw)
In-Reply-To: <7ba8469a-dd8c-1686-6d26-e2a4cbfedce9@gmail.com>


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

  reply	other threads:[~2020-07-21 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-21 18:19 [PATCH v2 1/2] iio: gyro: Add driver support for ADXRS290 Nishant Malpani
2020-07-21 19:46 ` Andy Shevchenko
2020-07-21 20:35   ` Nishant Malpani
2020-07-21 21:14     ` Nishant Malpani [this message]
2020-07-21 21:38     ` Andy Shevchenko
2020-07-22  9:40       ` Nishant Malpani
2020-07-22 10:23         ` Andy Shevchenko
2020-07-22 14:29           ` Nishant Malpani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13edcfdb-bb03-26e8-8392-e31a68b322cf@gmail.com \
    --to=nish.malpani25@gmail.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=darius.berghe@analog.com \
    --cc=dragos.bogdan@analog.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.