[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <662e227f-b759-df28-8cbf-a2223a1df6b6@kaa.org.ua>
Date: Mon, 5 Sep 2022 23:53:43 +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 2/3] leds: el15203000: 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_el15203000 has no spi_device_id for crane,el15203000
>
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
> drivers/leds/leds-el15203000.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/leds/leds-el15203000.c b/drivers/leds/leds-el15203000.c
> index 7e7b617bcd56..e24b4399176e 100644
> --- a/drivers/leds/leds-el15203000.c
> +++ b/drivers/leds/leds-el15203000.c
> @@ -329,9 +329,16 @@ static const struct of_device_id el15203000_dt_ids[] = {
>
> MODULE_DEVICE_TABLE(of, el15203000_dt_ids);
>
> +static const struct spi_device_id el15203000_spi_ids[] = {
> + { "el15203000" },
> + { },
> +};
> +MODULE_DEVICE_TABLE(spi, el15203000_spi_ids);
> +
> static struct spi_driver el15203000_driver = {
> .probe = el15203000_probe,
> .remove = el15203000_remove,
> + .id_table = el15203000_spi_ids,
> .driver = {
> .name = KBUILD_MODNAME,
> .of_match_table = el15203000_dt_ids,
Powered by blists - more mailing lists