aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2016-08-29 10:12:01 -0300
committerMauro Carvalho Chehab <[email protected]>2016-09-19 16:27:02 -0300
commit78f2c50bb4e1884318542cc5f674afb106555273 (patch)
treec50077b5d7a9f352a73e994b6b49e29e87e8cdfd /tools/perf/scripts/python/bin
parentf3c4a8f8d8eb3ed97bccf4776079af3ec5daa147 (diff)
[media] constify i2c_algorithm structures
These i2c_algorithm structures are only stored in the alg field of an i2c_adapter structure, which is declared as const. This declare the structures as const as well. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r disable optional_qualifier@ identifier i; position p; @@ static struct i2c_algorithm i@p = { ... }; @ok@ identifier r.i; struct i2c_adapter e; position p; @@ e.alg = &i@p; @bad@ position p != {r.p,ok.p}; identifier r.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r.i; @@ static +const struct i2c_algorithm i = { ... }; // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions