diff mbox series

iio: adc: mt6360: Drop an incorrect __maybe_unused marking.

Message ID 20220807162121.862894-1-jic23@kernel.org (mailing list archive)
State Accepted
Headers show
Series iio: adc: mt6360: Drop an incorrect __maybe_unused marking. | expand

Commit Message

Jonathan Cameron Aug. 7, 2022, 4:21 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Given the struct platform_driver has one of it's elements assigned to
point to the of_device_id table, it is never going to be unused.

Drop the marking.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Gene Chen <gene_chen@richtek.com>
---
 drivers/iio/adc/mt6360-adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Aug. 8, 2022, 9:22 a.m. UTC | #1
On Sun, Aug 7, 2022 at 6:47 PM Jonathan Cameron <jic23@kernel.org> wrote:
>
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> Given the struct platform_driver has one of it's elements assigned to
> point to the of_device_id table, it is never going to be unused.
>
> Drop the marking.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: Gene Chen <gene_chen@richtek.com>
> ---
>  drivers/iio/adc/mt6360-adc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c
> index 35260d9e4e47..3710473e526f 100644
> --- a/drivers/iio/adc/mt6360-adc.c
> +++ b/drivers/iio/adc/mt6360-adc.c
> @@ -353,7 +353,7 @@ static int mt6360_adc_probe(struct platform_device *pdev)
>         return devm_iio_device_register(&pdev->dev, indio_dev);
>  }
>
> -static const struct of_device_id __maybe_unused mt6360_adc_of_id[] = {
> +static const struct of_device_id mt6360_adc_of_id[] = {
>         { .compatible = "mediatek,mt6360-adc", },
>         {}
>  };
> --
> 2.37.1
>
Jonathan Cameron Aug. 13, 2022, 4:07 p.m. UTC | #2
On Mon, 8 Aug 2022 11:22:37 +0200
Andy Shevchenko <andy.shevchenko@gmail.com> wrote:

> On Sun, Aug 7, 2022 at 6:47 PM Jonathan Cameron <jic23@kernel.org> wrote:
> >
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> >
> > Given the struct platform_driver has one of it's elements assigned to
> > point to the of_device_id table, it is never going to be unused.
> >
> > Drop the marking.  
> 
> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Thanks,

Applied

> 
> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > Cc: Gene Chen <gene_chen@richtek.com>
> > ---
> >  drivers/iio/adc/mt6360-adc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c
> > index 35260d9e4e47..3710473e526f 100644
> > --- a/drivers/iio/adc/mt6360-adc.c
> > +++ b/drivers/iio/adc/mt6360-adc.c
> > @@ -353,7 +353,7 @@ static int mt6360_adc_probe(struct platform_device *pdev)
> >         return devm_iio_device_register(&pdev->dev, indio_dev);
> >  }
> >
> > -static const struct of_device_id __maybe_unused mt6360_adc_of_id[] = {
> > +static const struct of_device_id mt6360_adc_of_id[] = {
> >         { .compatible = "mediatek,mt6360-adc", },
> >         {}
> >  };
> > --
> > 2.37.1
> >  
> 
>
diff mbox series

Patch

diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c
index 35260d9e4e47..3710473e526f 100644
--- a/drivers/iio/adc/mt6360-adc.c
+++ b/drivers/iio/adc/mt6360-adc.c
@@ -353,7 +353,7 @@  static int mt6360_adc_probe(struct platform_device *pdev)
 	return devm_iio_device_register(&pdev->dev, indio_dev);
 }
 
-static const struct of_device_id __maybe_unused mt6360_adc_of_id[] = {
+static const struct of_device_id mt6360_adc_of_id[] = {
 	{ .compatible = "mediatek,mt6360-adc", },
 	{}
 };