const_structs.checkpatch: add device_type
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 18 Feb 2024 19:25:51 +0000 (16:25 -0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Mar 2024 21:07:39 +0000 (13:07 -0800)
commit3606422a28593a33fc7d3b7e25c73bf9688194c6
treeef399c219d2b8e6f5a5659ed44d7fb2fcf304763
parent6a57a21943dab509a04d911059d80a683d67c198
const_structs.checkpatch: add device_type

Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type.  Make sure that new
usages of the struct already enter the tree as const.

Link: https://lkml.kernel.org/r/20240218-device_cleanup-checkpatch-v1-1-8b0b89c4f6b1@marliere.net
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/const_structs.checkpatch