media: docs: v4l2-controls: rearrange control initialization sequence
authorLuca Ceresoli <luca@lucaceresoli.net>
Thu, 13 Jun 2019 14:18:22 +0000 (10:18 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:04:03 +0000 (17:04 -0400)
commite36160b84253d7125d0fa4109a3d69f0c55fc5d0
tree8322d6a64fb73f3c0697e5afe8dad494d1d12a82
parent9e75efb0f2c56c7285f28bba877da14f428a730c
media: docs: v4l2-controls: rearrange control initialization sequence

The code snippet showing how to add controls to the driver’s top-level
struct is present twice, but only the second time it is split in the V4L2
and subdev cases. Consolidate everything at the beginning.

Also remove the "Where foo->bar is of type struct baz" sentences, this
obvious from the code.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/kapi/v4l2-controls.rst