[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <414d008c-3be8-a6b8-5f7e-0e034c354acb@kaa.org.ua>
Date: Mon, 5 Sep 2022 23:53:21 +0300
From: Oleh Kravchenko <oleg@....org.ua>
To: Wei Yongjun <weiyongjun@...weicloud.com>,
Pavel Machek <pavel@....cz>
Cc: Wei Yongjun <weiyongjun1@...wei.com>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning
Acked-by: Oleh Kravchenko <oleg@....org.ua>
05.09.22 18:26, Wei Yongjun пише:
> From: Wei Yongjun <weiyongjun1@...wei.com>
>
> Add spi_device_id entries to silent following SPI warning:
>
> SPI driver leds_cr0014114 has no spi_device_id for crane,cr0014114
>
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
> drivers/leds/leds-cr0014114.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c
> index c87686bd7c18..095455163246 100644
> --- a/drivers/leds/leds-cr0014114.c
> +++ b/drivers/leds/leds-cr0014114.c
> @@ -281,9 +281,16 @@ static const struct of_device_id cr0014114_dt_ids[] = {
>
> MODULE_DEVICE_TABLE(of, cr0014114_dt_ids);
>
> +static const struct spi_device_id cr0014114_spi_ids[] = {
> + { "cr0014114" },
> + { },
> +};
> +MODULE_DEVICE_TABLE(spi, cr0014114_spi_ids);
> +
> static struct spi_driver cr0014114_driver = {
> .probe = cr0014114_probe,
> .remove = cr0014114_remove,
> + .id_table = cr0014114_spi_ids,
> .driver = {
> .name = KBUILD_MODNAME,
> .of_match_table = cr0014114_dt_ids,
Powered by blists - more mailing lists