media: v4l2-core: constify the class struct

All functions that take the class address as argument expect a const
pointer so we can make the video class constant.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
Bartosz Golaszewski 2024-10-18 15:13:51 +02:00 committed by Hans Verkuil
parent 9f070b1862
commit 2b744cb1a5

View File

@ -229,7 +229,7 @@ static void v4l2_device_release(struct device *cd)
v4l2_device_put(v4l2_dev);
}
static struct class video_class = {
static const struct class video_class = {
.name = VIDEO_NAME,
.dev_groups = video_device_groups,
};