Messages in this thread | | | Date | Mon, 26 Feb 2024 09:18:55 +0200 | From | Mika Westerberg <> | Subject | Re: [PATCH] thunderbolt: constify the struct device_type usage |
| |
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@linuxfoundation.org> > Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Applied to thunderbolt.git/next, thanks!
| |