Skip to content

Commit 3606422

Browse files
rbmarliereakpm00
authored andcommitted
const_structs.checkpatch: add device_type
Since commit aed65af ("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 <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6a57a21 commit 3606422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/const_structs.checkpatch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ comedi_lrange
88
component_ops
99
dentry_operations
1010
dev_pm_ops
11+
device_type
1112
dma_map_ops
1213
driver_info
1314
drm_connector_funcs

0 commit comments

Comments
 (0)