OSDN Git Service

checkpatch: add of_device_id to structs that should be const
authorJoe Perches <joe@perches.com>
Fri, 13 Feb 2015 22:39:05 +0000 (14:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:40 +0000 (21:21 -0800)
commit0f3c5aab5e00527eb3167aa9d1725cca9320e01e
treefb608e409b321504e831d79bb40ff327bb0e1827
parenta2fe16b9d878a101b67678872e5cd1410c057ec0
checkpatch: add of_device_id to structs that should be const

Uses of struct of_device_id are most commonly const.

Suggest using it as such.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl