Skip to contentSkip to conversation

hwmon: fix of_table.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Feb 25, 2019 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: fix of_table.cocci warnings

From: kbuild test robot <[email protected]>

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 <[email protected]>

---

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(+)
drivers/hwmon/ad7418.c +1 -0
@@ -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);