All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwmon: fix of_table.cocci warnings
@ 2019-02-25 16:37 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2019-02-25 16:37 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Guenter Roeck, kbuild-all, linux-hwmon

From: kbuild test robot <lkp@intel.com>

Make sure (of/i2c/platform)_device_id tables are NULL terminated

Generated by: scripts/coccinelle/misc/of_table.cocci

Fixes: 08c95c6f6f95 ("hwmon: (ad7418) Add device tree probing")
CC: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>

---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head:   08c95c6f6f95a6ca6f0290429e3190fc3ab3c528
commit: 08c95c6f6f95a6ca6f0290429e3190fc3ab3c528 [88/88] hwmon: (ad7418) Add device tree probing
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago

 ad7418.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/hwmon/ad7418.c
+++ b/drivers/hwmon/ad7418.c
@@ -299,6 +299,7 @@ static const struct of_device_id ad7418_
 	{ .compatible = "adi,ad7416", .data = (void *)ad7416, },
 	{ .compatible = "adi,ad7417", .data = (void *)ad7417, },
 	{ .compatible = "adi,ad7418", .data = (void *)ad7418, },
+	{},
 };
 MODULE_DEVICE_TABLE(of, ad7418_dt_ids);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-25 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-25 16:37 [PATCH] hwmon: fix of_table.cocci warnings Julia Lawall

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.