diff options
| author | Bartosz Golaszewski <[email protected]> | 2024-10-18 13:13:51 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-10-28 14:35:56 +0000 |
| commit | 2b744cb1a5a42d2428d9c39930be5c2fb89c588f (patch) | |
| tree | 1cfabb0a5cc1bb4e87d6dedbc26f6895142c6564 | |
| parent | media: v4l2-core: v4l2-dv-timings: check cvt/gtf result (diff) | |
| download | kernel-2b744cb1a5a42d2428d9c39930be5c2fb89c588f.tar.gz kernel-2b744cb1a5a42d2428d9c39930be5c2fb89c588f.zip | |
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
| -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, }; |
