1 /// Make sure (of/i2c/platform)_device_id tables are NULL terminated
3 // Keywords: of_table i2c_table platform_table
5 // Options: --include-headers
17 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
24 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
35 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
44 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
51 @r depends on org || report@
57 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
65 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
72 @script:python depends on org@
77 cocci.print_main(arr,p1)
79 @script:python depends on report@
84 msg = "%s is not NULL terminated at line %s" % (arr, p1[0].line)
85 coccilib.report.print_report(p1[0],msg)