mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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:
parent
9f070b1862
commit
2b744cb1a5
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user