media: cec: make cec_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sat, 3 Feb 2024 15:31:26 +0000 (12:31 -0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:46 +0000 (12:57 +0100)
commit009d312a3fd93a2bfed93d7a1c76e1f362384f08
treed61b0f349fb903fef12d3631dbd608246cbabdfa
parente76681afdc02b3ee0417d2f47825624697afe249
media: cec: make cec_bus_type const

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