diff mbox series

[2/3] i2c: Cocci spatch "of_table"

Message ID 1505974912018-1581728551-2-diffsplit-thomas@m3y3r.de
State Accepted
Headers show
Series None | expand

Commit Message

Thomas Meyer Sept. 21, 2017, 6:24 a.m. UTC
Make sure (of/i2c/platform)_device_id tables are NULL terminated.
Found by coccinelle spatch "misc/of_table.cocci"

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---

Comments

Wolfram Sang Oct. 5, 2017, 11:26 a.m. UTC | #1
On Thu, Sep 21, 2017 at 08:24:27AM +0200, Thomas Meyer wrote:
> Make sure (of/i2c/platform)_device_id tables are NULL terminated.
> Found by coccinelle spatch "misc/of_table.cocci"
> 
> Signed-off-by: Thomas Meyer <thomas@m3y3r.de>

Applied to for-current, thanks! But please use descriptive subjects, I
cahanged it to "i2c: ensure termination of *_device_id tables"
diff mbox series

Patch

diff -u -p a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c
--- a/drivers/i2c/busses/i2c-sprd.c
+++ b/drivers/i2c/busses/i2c-sprd.c
@@ -627,6 +627,7 @@  static const struct dev_pm_ops sprd_i2c_
 
 static const struct of_device_id sprd_i2c_of_match[] = {
 	{ .compatible = "sprd,sc9860-i2c", },
+	{},
 };
 
 static struct platform_driver sprd_i2c_driver = {