diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-18 16:25:51 -0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-03-06 13:07:39 -0800 |
commit | 20f82a11d97e45270e3859fe8e251239b68487ac (patch) | |
tree | f9e74b76c81792755c97eb95abff2e0c492645e7 | |
parent | 44a8ad877eca95f942b1d31e216fffa299f3fd19 (diff) |
const_structs.checkpatch: add device_type
Since commit cf7df6ae8064 ("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>
-rw-r--r-- | scripts/const_structs.checkpatch | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch index 7427313..fa96cfd 100644 --- 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 |