projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a57a21
)
const_structs.checkpatch: add device_type
author
Ricardo B. Marliere
<ricardo@marliere.net>
Sun, 18 Feb 2024 19:25:51 +0000
(16:25 -0300)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 6 Mar 2024 21:07:39 +0000
(13:07 -0800)
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
patch
|
blob
|
history
diff --git
a/scripts/const_structs.checkpatch
b/scripts/const_structs.checkpatch
index 7427313adc7aab9ca6ae04bd9e9f979406c38bb5..fa96cfd16e998dc6fba20dd899b50f0ecd0685f4 100644
(file)
--- a/
scripts/const_structs.checkpatch
+++ b/
scripts/const_structs.checkpatch
@@
-8,6
+8,7
@@
comedi_lrange
component_ops
dentry_operations
dev_pm_ops
+device_type
dma_map_ops
driver_info
drm_connector_funcs