media: bt8xx: make bttv_sub_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Fri, 9 Feb 2024 23:27:48 +0000 (20:27 -0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 16 Feb 2024 10:46:33 +0000 (11:46 +0100)
commit044c566d05035af5092f65a2912a28312dada8fe
treeae333008d6abed8fd8329636e680c2310f9907f9
parent45d6ed917020855f0ca3ffbe549aba96ba992983
media: bt8xx: make bttv_sub_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the bttv_sub_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/bt8xx/bttv-gpio.c
drivers/media/pci/bt8xx/bttvp.h