aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBhumika Goyal <[email protected]>2016-12-26 22:35:11 +0530
committerGuenter Roeck <[email protected]>2017-02-24 14:00:23 -0800
commit6c368932f0d885e54b8af06d699b6d559e86f0cd (patch)
tree257a484b5c156cae315a9c527669b9d9e64fe90f /tools/perf/scripts/python
parentcb5f9d406d50fc01c6564956ed9317614e665208 (diff)
watchdog: constify watchdog_info structures
Declare watchdog_info structures as const as they are only stored in the info field of watchdog_device structures. This field is of type const struct watchdog_info *, so watchdog_info structures having this property can be declared const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p; @@ static struct watchdog_info i@p={...}; @ok@ identifier r1.i; position p; struct watchdog_device obj; @@ obj.info=&i@p; @bad@ position p!={r1.p,ok.p}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct watchdog_info i; Signed-off-by: Bhumika Goyal <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Baruch Siach <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Acked-by: Adam Thomson <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions