All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: Add missing sentinel in ocores_i2c.c
@ 2021-08-15 23:04 Thomas Skibo
  2021-08-26  7:52 ` Leo Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Skibo @ 2021-08-15 23:04 UTC (permalink / raw)
  To: u-boot; +Cc: Thomas Skibo

The ocores_i2c.c driver is missing a sentinel at the end of
the compatible strings list.  This causes the "dm compat" command
to spew garbage.

Signed-off-by: Thomas Skibo <thomas-git@skibo.net>
---
 drivers/i2c/ocores_i2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c
index 088ba9a6a3..f129ec3818 100644
--- a/drivers/i2c/ocores_i2c.c
+++ b/drivers/i2c/ocores_i2c.c
@@ -626,6 +626,7 @@ static const struct udevice_id ocores_i2c_ids[] = {
 { .compatible = "aeroflexgaisler,i2cmst", .data = TYPE_GRLIB },
 { .compatible = "sifive,fu540-c000-i2c" },
 { .compatible = "sifive,i2c0" },
+{ }
 };
 
 U_BOOT_DRIVER(i2c_ocores) = {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] riscv: Add missing sentinel in ocores_i2c.c
  2021-08-15 23:04 [PATCH] riscv: Add missing sentinel in ocores_i2c.c Thomas Skibo
@ 2021-08-26  7:52 ` Leo Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2021-08-26  7:52 UTC (permalink / raw)
  To: Thomas Skibo; +Cc: u-boot

On Sun, Aug 15, 2021 at 04:04:03PM -0700, Thomas Skibo wrote:
> The ocores_i2c.c driver is missing a sentinel at the end of
> the compatible strings list.  This causes the "dm compat" command
> to spew garbage.
> 
> Signed-off-by: Thomas Skibo <thomas-git@skibo.net>
> ---
>  drivers/i2c/ocores_i2c.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-26  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-15 23:04 [PATCH] riscv: Add missing sentinel in ocores_i2c.c Thomas Skibo
2021-08-26  7:52 ` Leo Liang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.