Re: [PATCH] const_structs.checkpatch: add device_type

From: Greg Kroah-Hartman
Date: Mon Feb 19 2024 - 03:49:11 EST


On Sun, Feb 18, 2024 at 04:25:51PM -0300, Ricardo B. Marliere wrote:
> 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.
>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Ricardo B. Marliere <ricardo@xxxxxxxxxxxx>
> ---
> scripts/const_structs.checkpatch | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch
> index 188412aa2757..5227f34a1b4f 100644
> --- a/scripts/const_structs.checkpatch
> +++ b/scripts/const_structs.checkpatch
> @@ -7,6 +7,7 @@ comedi_lrange
> component_ops
> dentry_operations
> dev_pm_ops
> +device_type
> dma_map_ops
> driver_info
> drm_connector_funcs
>
> ---


Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>