aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-19 13:16:01 +0530
committerWolfram Sang <[email protected]>2019-08-29 22:10:01 +0200
commitf9bf7a899412b5f8c96b084343bde4168dc12efa (patch)
tree5b37eb7b1880a2e59761e6d5439d748afe9936f2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parent70fb95e213147a88417eaae5b93ba6e59be087c0 (diff)
i2c: taos-evm: Make structure tsl2550_info constant
Static structure tsl2550_info, of type i2c_board_info, is referenced only twice: the first time in arguments to dev_info() (which does not modify it) and the second time as the last argument to function i2c_new_device() (where the corresponding parameter is declared as const). As tsl2550_info is therefore never modified, make it const to protect it from unintended modifications. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions