diff options
author | 2016-09-22 23:33:34 +0800 | |
---|---|---|
committer | 2016-09-23 14:11:45 +0200 | |
commit | cdcffc0cdf553500dca22d93e3a87e2e0848aa83 (patch) | |
tree | 285576967836c64843cef5d996bda0e75c7ddfda /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Staging: speakup: kobjects: Add space around the operator. (diff) | |
download | linux-dev-cdcffc0cdf553500dca22d93e3a87e2e0848aa83.tar.xz linux-dev-cdcffc0cdf553500dca22d93e3a87e2e0848aa83.zip |
staging: greybus: arche-platform: declare struct of_device_id as const
Declare the arrays 'arche_platform_of_match' and 'arche_combined_id' as const.
'arche_platform_of_match' is only stored in the .of_match_table field of a
device_driver structure, which is declared as const.
'arche_combined_id' is passed to MODULE_DEVICE_TABLE. This macro does not
modify the array and therefore the array can be declared as const. Checkpatch
pointed out both issues.
WARNING: struct of_device_id should be normally const
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions