Re: [PATCH] iio: adc: mt6360: Drop an incorrect __maybe_unused marking.

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

 



On Sun, Aug 7, 2022 at 6:47 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
>
> 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@xxxxxxxxx>

> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> Cc: Gene Chen <gene_chen@xxxxxxxxxxx>
> ---
>  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
>


-- 
With Best Regards,
Andy Shevchenko



[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