]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l2_ctrl: Add const pointer to ctrl_ptr
authorRicardo Ribalda Delgado <ribalda@kernel.org>
Mon, 4 Nov 2019 13:09:19 +0000 (14:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Nov 2019 06:40:49 +0000 (07:40 +0100)
commitf1bd5eae7de76ef8eabc9e393f5a8718d8f25d2a
tree3701702d3eff9b5a0cd4b15d4c53adeb83fc5a03
parent3b98a21a3202aeb9a47c0b57cab3d3ed420c1e05
media: v4l2_ctrl: Add const pointer to ctrl_ptr

This pointer is used to point to data that is constant. Thanks to this
we can avoid a lot of casting and we make more clear when the data is
constant or variable.

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
include/media/v4l2-ctrls.h