Skip to content

Commit a91aee5

Browse files
thomasmeyWolfram Sang
authored andcommitted
i2c: ensure termination of *_device_id tables
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent cb09d94 commit a91aee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-sprd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ static const struct dev_pm_ops sprd_i2c_pm_ops = {
627627

628628
static const struct of_device_id sprd_i2c_of_match[] = {
629629
{ .compatible = "sprd,sc9860-i2c", },
630+
{},
630631
};
631632

632633
static struct platform_driver sprd_i2c_driver = {

0 commit comments

Comments
 (0)