* [PATCH] iio: adc: mxs-lradc-adc: use iio_device_id() helper
@ 2021-05-04 7:53 Alexandru Ardelean
2021-05-08 15:21 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Ardelean @ 2021-05-04 7:53 UTC (permalink / raw)
To: linux-iio, linux-kernel; +Cc: jic23, Alexandru Ardelean, kernel test robot
The @id field was moved in commit e58bb7a74dca ("iio: core: move @id from
struct iio_dev to struct iio_dev_opaque"), however this driver was omitted
by accident, because the name of the IIO device is 'iio'.
This was caught by the lkp bot.
Fixes: e58bb7a74dca ("iio: core: move @id from struct iio_dev to struct iio_dev_opaque")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
---
drivers/iio/adc/mxs-lradc-adc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c
index 30e29f44ebd2..1d99170d3328 100644
--- a/drivers/iio/adc/mxs-lradc-adc.c
+++ b/drivers/iio/adc/mxs-lradc-adc.c
@@ -455,7 +455,7 @@ static int mxs_lradc_adc_trigger_init(struct iio_dev *iio)
struct mxs_lradc_adc *adc = iio_priv(iio);
trig = devm_iio_trigger_alloc(&iio->dev, "%s-dev%i", iio->name,
- iio->id);
+ iio_device_id(iio));
if (!trig)
return -ENOMEM;
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: adc: mxs-lradc-adc: use iio_device_id() helper
2021-05-04 7:53 [PATCH] iio: adc: mxs-lradc-adc: use iio_device_id() helper Alexandru Ardelean
@ 2021-05-08 15:21 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2021-05-08 15:21 UTC (permalink / raw)
To: Alexandru Ardelean; +Cc: linux-iio, linux-kernel, kernel test robot
On Tue, 4 May 2021 10:53:04 +0300
Alexandru Ardelean <aardelean@deviqon.com> wrote:
> The @id field was moved in commit e58bb7a74dca ("iio: core: move @id from
> struct iio_dev to struct iio_dev_opaque"), however this driver was omitted
> by accident, because the name of the IIO device is 'iio'.
>
> This was caught by the lkp bot.
>
> Fixes: e58bb7a74dca ("iio: core: move @id from struct iio_dev to struct iio_dev_opaque")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Thanks. I applied this as a fixup as that branch hadn't yet gone out as non
rebasing and I don't want to break bisection.
Also chased down how I'd missed this on in my test .config.
Jonathan
> ---
> drivers/iio/adc/mxs-lradc-adc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c
> index 30e29f44ebd2..1d99170d3328 100644
> --- a/drivers/iio/adc/mxs-lradc-adc.c
> +++ b/drivers/iio/adc/mxs-lradc-adc.c
> @@ -455,7 +455,7 @@ static int mxs_lradc_adc_trigger_init(struct iio_dev *iio)
> struct mxs_lradc_adc *adc = iio_priv(iio);
>
> trig = devm_iio_trigger_alloc(&iio->dev, "%s-dev%i", iio->name,
> - iio->id);
> + iio_device_id(iio));
> if (!trig)
> return -ENOMEM;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-08 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 7:53 [PATCH] iio: adc: mxs-lradc-adc: use iio_device_id() helper Alexandru Ardelean
2021-05-08 15:21 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).