Re: [PATCH] thunderbolt: constify the struct device_type usage

From: Mika Westerberg
Date: Mon Feb 26 2024 - 02:19:07 EST


On Mon, Feb 19, 2024 at 09:45:50AM -0300, Ricardo B. Marliere wrote:
> Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
> core can properly handle constant struct device_type. Move the
> tb_domain_type, tb_retimer_type, tb_switch_type, usb4_port_device_type,
> tb_service_type and tb_xdomain_type variables to be constant structures as
> well, placing it into read-only memory which can not be modified at
> runtime.
>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Ricardo B. Marliere <ricardo@xxxxxxxxxxxx>

Applied to thunderbolt.git/next, thanks!