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]>
Signed-off-by: kbuild test robot <[email protected]>
Signed-off-by: Julia Lawall <[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(+)

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

Reply via email to