diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-18 16:13:51 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2024-10-28 17:35:56 +0300 |
commit | 2b744cb1a5a42d2428d9c39930be5c2fb89c588f (patch) | |
tree | 1cfabb0a5cc1bb4e87d6dedbc26f6895142c6564 /drivers/media/v4l2-core | |
parent | 9f070b1862f3411b8bcdfd51a8eaad25286f9deb (diff) | |
download | linux-2b744cb1a5a42d2428d9c39930be5c2fb89c588f.tar.xz |
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>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index dbd6fba93179..5bcaeeba4d09 100644 --- a/drivers/media/v4l2-core/v4l2-dev.c +++ b/drivers/media/v4l2-core/v4l2-dev.c @@ -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, }; |