media: media-devnode: make media_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sat, 3 Feb 2024 15:31:27 +0000 (12:31 -0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:46 +0000 (12:57 +0100)
commite248cde98470ca3d9449e2b744b11279681f8e18
tree8d865281d3ee4478924eea09d3197f16c9b53ef0
parent009d312a3fd93a2bfed93d7a1c76e1f362384f08
media: media-devnode: make media_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the media_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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/mc/mc-devnode.c