diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-03 12:31:26 -0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-02-05 12:57:46 +0100 |
commit | 009d312a3fd93a2bfed93d7a1c76e1f362384f08 (patch) | |
tree | d61b0f349fb903fef12d3631dbd608246cbabdfa /drivers/media/cec/core | |
parent | e76681afdc02b3ee0417d2f47825624697afe249 (diff) | |
download | linux-009d312a3fd93a2bfed93d7a1c76e1f362384f08.tar.gz linux-009d312a3fd93a2bfed93d7a1c76e1f362384f08.tar.bz2 linux-009d312a3fd93a2bfed93d7a1c76e1f362384f08.zip |
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>
Diffstat (limited to 'drivers/media/cec/core')
-rw-r--r-- | drivers/media/cec/core/cec-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/cec/core/cec-core.c b/drivers/media/cec/core/cec-core.c index 7e153c5cad04..5a54db839e5d 100644 --- a/drivers/media/cec/core/cec-core.c +++ b/drivers/media/cec/core/cec-core.c @@ -93,7 +93,7 @@ static void cec_devnode_release(struct device *cd) cec_delete_adapter(to_cec_adapter(devnode)); } -static struct bus_type cec_bus_type = { +static const struct bus_type cec_bus_type = { .name = CEC_NAME, }; |