* [PATCH 2/3] i2c: Cocci spatch "of_table"
[not found] <1505974912018-1637125348-0-diffsplit-thomas@m3y3r.de>
@ 2017-09-21 6:24 ` Thomas Meyer
2017-10-05 11:26 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Meyer @ 2017-09-21 6:24 UTC (permalink / raw)
To: wsa, linux-i2c, linux-kernel
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>
---
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 = {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] i2c: Cocci spatch "of_table"
2017-09-21 6:24 ` [PATCH 2/3] i2c: Cocci spatch "of_table" Thomas Meyer
@ 2017-10-05 11:26 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-10-05 11:26 UTC (permalink / raw)
To: Thomas Meyer; +Cc: linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
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"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-05 11:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1505974912018-1637125348-0-diffsplit-thomas@m3y3r.de>
2017-09-21 6:24 ` [PATCH 2/3] i2c: Cocci spatch "of_table" Thomas Meyer
2017-10-05 11:26 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).