diff mbox series

hwmon: fix of_table.cocci warnings

Message ID alpine.DEB.2.20.1902251735550.3474@hadrien (mailing list archive)
State Not Applicable
Headers show
Series hwmon: fix of_table.cocci warnings | expand

Commit Message

Julia Lawall Feb. 25, 2019, 4:37 p.m. UTC
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(+)
diff mbox series

Patch

--- 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);