From: Ricardo B. Marliere Date: Sun, 18 Feb 2024 19:25:51 +0000 (-0300) Subject: const_structs.checkpatch: add device_type X-Git-Tag: v6.9-rc1~106^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3606422a28593a33fc7d3b7e25c73bf9688194c6;hp=6a57a21943dab509a04d911059d80a683d67c198;p=linux-block.git 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 Reviewed-by: Greg Kroah-Hartman Cc: Joe Perches Signed-off-by: Andrew Morton --- diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch index 7427313adc7a..fa96cfd16e99 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