[media] docs-rst: fix warnings introduced by LaTeX patchset

Sphinx is really pedantic with respect to the order where
table tags and references are created. Putting things at
the wrong order causes troubles.

The order that seems to work is:

	.. raw:: latex

	.. tabularcolumns::

	.. _foo_name:

	.. cssclass: longtable

	.. flat-table::

Reorder the tags to the above order, to avoid troubles, and
fix remaining warnings introduced by media recent patches.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
diff --git a/Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst b/Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst
index e0eaada..89ba813 100644
--- a/Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst
@@ -41,11 +41,10 @@
 struct :ref:`cec_caps <cec-caps>`. The driver fills the structure and
 returns the information to the application. The ioctl never fails.
 
+.. tabularcolumns:: |p{1.2cm}|p{2.5cm}|p{13.8cm}|
 
 .. _cec-caps:
 
-.. tabularcolumns:: |p{1.2cm}|p{2.5cm}|p{13.8cm}|
-
 .. flat-table:: struct cec_caps
     :header-rows:  0
     :stub-columns: 0
@@ -88,11 +87,10 @@
 	  macro.
 
 
+.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
 
 .. _cec-capabilities:
 
-.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
-
 .. flat-table:: CEC Capabilities Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst b/Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst
index 959e920..42f8e85 100644
--- a/Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst
@@ -66,11 +66,10 @@
 Attempting to call :ref:`ioctl CEC_ADAP_S_LOG_ADDRS <CEC_ADAP_S_LOG_ADDRS>` when
 logical address types are already defined will return with error ``EBUSY``.
 
+.. tabularcolumns:: |p{1.0cm}|p{7.5cm}|p{8.0cm}|
 
 .. _cec-log-addrs:
 
-.. tabularcolumns:: |p{1.0cm}|p{7.5cm}|p{8.0cm}|
-
 .. cssclass:: longtable
 
 .. flat-table:: struct cec_log_addrs
@@ -207,10 +206,10 @@
           give the CEC framework more information about the device type, even
           though the framework won't use it directly in the CEC message.
 
-.. _cec-versions:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _cec-versions:
+
 .. flat-table:: CEC Versions
     :header-rows:  0
     :stub-columns: 0
@@ -242,11 +241,10 @@
        -  CEC version according to the HDMI 2.0 standard.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _cec-prim-dev-types:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: CEC Primary Device Types
     :header-rows:  0
     :stub-columns: 0
@@ -310,11 +308,10 @@
        -  Use for a video processor device.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _cec-log-addr-types:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: CEC Logical Address Types
     :header-rows:  0
     :stub-columns: 0
@@ -381,10 +378,10 @@
 
 
 
-.. _cec-all-dev-types-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _cec-all-dev-types-flags:
+
 .. flat-table:: CEC All Device Types Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/cec/cec-ioc-dqevent.rst b/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
index c27b568..f606d2f 100644
--- a/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
@@ -51,11 +51,10 @@
 the same state). In that case the intermediate state changes were lost but
 it is guaranteed that the state did change in between the two events.
 
+.. tabularcolumns:: |p{1.2cm}|p{2.9cm}|p{13.4cm}|
 
 .. _cec-event-state-change_s:
 
-.. tabularcolumns:: |p{1.2cm}|p{2.9cm}|p{13.4cm}|
-
 .. flat-table:: struct cec_event_state_change
     :header-rows:  0
     :stub-columns: 0
@@ -79,11 +78,10 @@
        -  The current set of claimed logical addresses.
 
 
+.. tabularcolumns:: |p{1.0cm}|p{2.0cm}|p{14.5cm}|
 
 .. _cec-event-lost-msgs_s:
 
-.. tabularcolumns:: |p{1.0cm}|p{2.0cm}|p{14.5cm}|
-
 .. flat-table:: struct cec_event_lost_msgs
     :header-rows:  0
     :stub-columns: 0
@@ -107,11 +105,10 @@
 	  this is more than enough.
 
 
+.. tabularcolumns:: |p{1.0cm}|p{4.2cm}|p{2.5cm}|p{8.8cm}|
 
 .. _cec-event:
 
-.. tabularcolumns:: |p{1.0cm}|p{4.2cm}|p{2.5cm}|p{8.8cm}|
-
 .. flat-table:: struct cec_event
     :header-rows:  0
     :stub-columns: 0
@@ -175,11 +172,10 @@
 	  event.
 
 
+.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
 
 .. _cec-events:
 
-.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
-
 .. flat-table:: CEC Events Types
     :header-rows:  0
     :stub-columns: 0
@@ -206,11 +202,10 @@
 	  application didn't dequeue CEC messages fast enough.
 
 
+.. tabularcolumns:: |p{6.0cm}|p{0.6cm}|p{10.9cm}|
 
 .. _cec-event-flags:
 
-.. tabularcolumns:: |p{6.0cm}|p{0.6cm}|p{10.9cm}|
-
 .. flat-table:: CEC Event Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/cec/cec-ioc-g-mode.rst b/Documentation/media/uapi/cec/cec-ioc-g-mode.rst
index 32261e0..b75ed70 100644
--- a/Documentation/media/uapi/cec/cec-ioc-g-mode.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-g-mode.rst
@@ -73,11 +73,10 @@
 
 Available initiator modes are:
 
+.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
 
 .. _cec-mode-initiator_e:
 
-.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
-
 .. flat-table:: Initiator Modes
     :header-rows:  0
     :stub-columns: 0
@@ -118,11 +117,10 @@
 
 Available follower modes are:
 
+.. tabularcolumns:: |p{6.6cm}|p{0.9cm}|p{10.0cm}|
 
 .. _cec-mode-follower_e:
 
-.. tabularcolumns:: |p{6.6cm}|p{0.9cm}|p{10.0cm}|
-
 .. flat-table:: Follower Modes
     :header-rows:  0
     :stub-columns: 0
@@ -212,11 +210,10 @@
 
 Core message processing details:
 
+.. tabularcolumns:: |p{6.6cm}|p{10.9cm}|
 
 .. _cec-core-processing:
 
-.. tabularcolumns:: |p{6.6cm}|p{10.9cm}|
-
 .. flat-table:: Core Message Processing
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/cec/cec-ioc-receive.rst b/Documentation/media/uapi/cec/cec-ioc-receive.rst
index 7615c94..a7074a9 100644
--- a/Documentation/media/uapi/cec/cec-ioc-receive.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-receive.rst
@@ -73,10 +73,10 @@
 result.
 
 
-.. _cec-msg:
-
 .. tabularcolumns:: |p{1.0cm}|p{3.5cm}|p{13.0cm}|
 
+.. _cec-msg:
+
 .. flat-table:: struct cec_msg
     :header-rows:  0
     :stub-columns: 0
@@ -251,11 +251,10 @@
 	  valid if the :ref:`CEC_TX_STATUS_ERROR <CEC-TX-STATUS-ERROR>` status bit is set.
 
 
+.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
 
 .. _cec-tx-status:
 
-.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
-
 .. flat-table:: CEC Transmit Status
     :header-rows:  0
     :stub-columns: 0
@@ -321,11 +320,10 @@
 	  be set to explain which failures were seen.
 
 
+.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
 
 .. _cec-rx-status:
 
-.. tabularcolumns:: |p{5.6cm}|p{0.9cm}|p{11.0cm}|
-
 .. flat-table:: CEC Receive Status
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst b/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
index 750dd11..c836d64 100644
--- a/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
+++ b/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
@@ -48,11 +48,10 @@
 If the ``topology_version`` remains the same, the ioctl should fill the
 desired arrays with the media graph elements.
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-topology:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_topology
     :header-rows:  0
     :stub-columns: 0
@@ -144,11 +143,10 @@
 	  won't store the links. It will just update ``num_links``
 
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-entity:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_entity
     :header-rows:  0
     :stub-columns: 0
@@ -189,11 +187,10 @@
 	  this array to zero.
 
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-interface:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_interface
     :header-rows:  0
     :stub-columns: 0
@@ -242,11 +239,10 @@
 	  :ref:`media-v2-intf-devnode` for details..
 
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-intf-devnode:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_interface
     :header-rows:  0
     :stub-columns: 0
@@ -270,11 +266,10 @@
        -  Device node minor number.
 
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-pad:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_pad
     :header-rows:  0
     :stub-columns: 0
@@ -315,11 +310,10 @@
 	  this array to zero.
 
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
 
 .. _media-v2-link:
 
-.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
-
 .. flat-table:: struct media_v2_pad
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/dev-raw-vbi.rst b/Documentation/media/uapi/v4l/dev-raw-vbi.rst
index 1b59239..3cf4486 100644
--- a/Documentation/media/uapi/v4l/dev-raw-vbi.rst
+++ b/Documentation/media/uapi/v4l/dev-raw-vbi.rst
@@ -99,11 +99,10 @@
 and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does.
 :ref:`VIDIOC_TRY_FMT <VIDIOC_G_FMT>` is optional.
 
+.. tabularcolumns:: |p{2.4cm}|p{4.4cm}|p{10.7cm}|
 
 .. _v4l2-vbi-format:
 
-.. tabularcolumns:: |p{2.4cm}|p{4.4cm}|p{10.7cm}|
-
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_vbi_format
@@ -227,11 +226,10 @@
 	  applications must set it to zero.
 
 
+.. tabularcolumns:: |p{4.0cm}|p{1.5cm}|p{12.0cm}|
 
 .. _vbifmt-flags:
 
-.. tabularcolumns:: |p{4.0cm}|p{1.5cm}|p{12.0cm}|
-
 .. flat-table:: Raw VBI Format Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/dev-subdev.rst b/Documentation/media/uapi/v4l/dev-subdev.rst
index b1aed45..7d20c72 100644
--- a/Documentation/media/uapi/v4l/dev-subdev.rst
+++ b/Documentation/media/uapi/v4l/dev-subdev.rst
@@ -202,14 +202,14 @@
 list entity names and pad numbers).
 
 
-.. _sample-pipeline-config:
-
 .. raw:: latex
 
     \newline\newline\begin{adjustbox}{width=\columnwidth}
 
 .. tabularcolumns:: |p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|
 
+.. _sample-pipeline-config:
+
 .. flat-table:: Sample Pipeline Configuration
     :header-rows:  1
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/pixfmt-002.rst b/Documentation/media/uapi/v4l/pixfmt-002.rst
index 368da55..58e872f 100644
--- a/Documentation/media/uapi/v4l/pixfmt-002.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-002.rst
@@ -4,11 +4,10 @@
 Single-planar format structure
 ******************************
 
+.. tabularcolumns:: |p{4.0cm}|p{2.5cm}|p{11.0cm}|
 
 .. _v4l2-pix-format:
 
-.. tabularcolumns:: |p{4.0cm}|p{2.5cm}|p{11.0cm}|
-
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_pix_format
diff --git a/Documentation/media/uapi/v4l/pixfmt-003.rst b/Documentation/media/uapi/v4l/pixfmt-003.rst
index 8dc86b4..4a2dbe1 100644
--- a/Documentation/media/uapi/v4l/pixfmt-003.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-003.rst
@@ -12,10 +12,10 @@
 describing all planes of that format.
 
 
-.. _v4l2-plane-pix-format:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-plane-pix-format:
+
 .. flat-table:: struct v4l2_plane_pix_format
     :header-rows:  0
     :stub-columns: 0
@@ -49,11 +49,10 @@
 	  applications.
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
 .. _v4l2-pix-format-mplane:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
-
 .. flat-table:: struct v4l2_pix_format_mplane
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst b/Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst
index af5fac7..2180a3a 100644
--- a/Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst
@@ -18,10 +18,10 @@
 
     \newline\newline\begin{adjustbox}{width=\columnwidth}
 
-.. _rgb-formats:
-
 .. tabularcolumns:: |p{4.5cm}|p{3.3cm}|p{0.7cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{1.7cm}|
 
+.. _rgb-formats:
+
 .. flat-table:: Packed RGB Image Formats
     :header-rows:  2
     :stub-columns: 0
@@ -1113,8 +1113,6 @@
 either the corresponding ARGB or XRGB format, depending on the driver.
 
 
-.. _rgb-formats-deprecated:
-
 .. raw:: latex
 
     \newline\newline
@@ -1122,6 +1120,8 @@
 
 .. tabularcolumns:: |p{4.2cm}|p{1.0cm}|p{0.7cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{1.7cm}|
 
+.. _rgb-formats-deprecated:
+
 .. flat-table:: Deprecated Packed RGB Image Formats
     :header-rows:  2
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst b/Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst
index 2ffcee5..6066f13 100644
--- a/Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst
@@ -16,7 +16,7 @@
 
     \newline\newline\begin{adjustbox}{width=\columnwidth}
 
-.. _rgb-formats:
+.. _yuv-formats:
 
 .. tabularcolumns:: |p{4.5cm}|p{3.3cm}|p{0.7cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{1.7cm}|
 
diff --git a/Documentation/media/uapi/v4l/pixfmt-reserved.rst b/Documentation/media/uapi/v4l/pixfmt-reserved.rst
index d6938cd..0dd2f7f 100644
--- a/Documentation/media/uapi/v4l/pixfmt-reserved.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-reserved.rst
@@ -17,10 +17,10 @@
 please make a proposal on the linux-media mailing list.
 
 
-.. _reserved-formats:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _reserved-formats:
+
 .. flat-table:: Reserved Image Formats
     :header-rows:  1
     :stub-columns: 0
@@ -341,10 +341,10 @@
 
 
 
-.. _format-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _format-flags:
+
 .. flat-table:: Format Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/subdev-formats.rst b/Documentation/media/uapi/v4l/subdev-formats.rst
index 7d9b55d..a347fcc 100644
--- a/Documentation/media/uapi/v4l/subdev-formats.rst
+++ b/Documentation/media/uapi/v4l/subdev-formats.rst
@@ -5,11 +5,10 @@
 Media Bus Formats
 =================
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
 .. _v4l2-mbus-framefmt:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
-
 .. flat-table:: struct v4l2_mbus_framefmt
     :header-rows:  0
     :stub-columns: 0
@@ -3758,7 +3757,7 @@
 
 .. _v4l2-mbus-pixelcode-yuv8:
 
-.. cssclass: longtable
+.. cssclass:: longtable
 
 .. flat-table:: YUV Formats
     :header-rows:  2
diff --git a/Documentation/media/uapi/v4l/vidioc-dbg-g-chip-info.rst b/Documentation/media/uapi/v4l/vidioc-dbg-g-chip-info.rst
index b433132..4c30b22 100644
--- a/Documentation/media/uapi/v4l/vidioc-dbg-g-chip-info.rst
+++ b/Documentation/media/uapi/v4l/vidioc-dbg-g-chip-info.rst
@@ -78,10 +78,10 @@
 instructions.
 
 
-.. _name-v4l2-dbg-match:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
 
+.. _name-v4l2-dbg-match:
+
 .. flat-table:: struct v4l2_dbg_match
     :header-rows:  0
     :stub-columns: 0
@@ -124,10 +124,10 @@
 
 
 
-.. _v4l2-dbg-chip-info:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-dbg-chip-info:
+
 .. flat-table:: struct v4l2_dbg_chip_info
     :header-rows:  0
     :stub-columns: 0
@@ -171,10 +171,10 @@
 
 
 
-.. _name-chip-match-types:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _name-chip-match-types:
+
 .. flat-table:: Chip Match Types
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst b/Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst
index 28885cf..cb6a878 100644
--- a/Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst
+++ b/Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst
@@ -86,10 +86,10 @@
 instructions.
 
 
-.. _v4l2-dbg-match:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
 
+.. _v4l2-dbg-match:
+
 .. flat-table:: struct v4l2_dbg_match
     :header-rows:  0
     :stub-columns: 0
@@ -173,10 +173,10 @@
 
 
 
-.. _chip-match-types:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _chip-match-types:
+
 .. flat-table:: Chip Match Types
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst b/Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst
index 4287e5b..63acf4e 100644
--- a/Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst
+++ b/Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst
@@ -56,12 +56,12 @@
 introduced in Linux 3.3.
 
 
+.. tabularcolumns:: |p{1.1cm}|p{2.4cm}|p{1.2cm}|p{1.6cm}|p{10.6cm}|
+
 .. _v4l2-decoder-cmd:
 
 .. cssclass:: longtable
 
-.. tabularcolumns:: |p{1.1cm}|p{2.4cm}|p{1.2cm}|p{1.6cm}|p{10.6cm}|
-
 .. flat-table:: struct v4l2_decoder_cmd
     :header-rows:  0
     :stub-columns: 0
@@ -189,10 +189,10 @@
 
 
 
-.. _decoder-cmds:
-
 .. tabularcolumns:: |p{5.6cm}|p{0.6cm}|p{11.3cm}|
 
+.. _decoder-cmds:
+
 .. flat-table:: Decoder Commands
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-dqevent.rst b/Documentation/media/uapi/v4l/vidioc-dqevent.rst
index ad4b826..e5be2a5 100644
--- a/Documentation/media/uapi/v4l/vidioc-dqevent.rst
+++ b/Documentation/media/uapi/v4l/vidioc-dqevent.rst
@@ -40,10 +40,10 @@
 call.
 
 
-.. _v4l2-event:
-
 .. tabularcolumns:: |p{3.0cm}|p{4.3cm}|p{2.5cm}|p{7.7cm}|
 
+.. _v4l2-event:
+
 .. cssclass: longtable
 
 .. flat-table:: struct v4l2_event
@@ -179,12 +179,12 @@
 
 
 
-.. _event-type:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. cssclass:: longtable
 
+.. _event-type:
+
 .. flat-table:: Event Types
     :header-rows:  0
     :stub-columns: 0
@@ -310,10 +310,10 @@
 
 
 
-.. _v4l2-event-vsync:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-event-vsync:
+
 .. flat-table:: struct v4l2_event_vsync
     :header-rows:  0
     :stub-columns: 0
@@ -330,10 +330,10 @@
 
 
 
-.. _v4l2-event-ctrl:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.0cm}|p{1.8cm}|p{8.5cm}|
 
+.. _v4l2-event-ctrl:
+
 .. flat-table:: struct v4l2_event_ctrl
     :header-rows:  0
     :stub-columns: 0
@@ -439,10 +439,10 @@
 
 
 
-.. _v4l2-event-frame-sync:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-event-frame-sync:
+
 .. flat-table:: struct v4l2_event_frame_sync
     :header-rows:  0
     :stub-columns: 0
@@ -459,10 +459,10 @@
 
 
 
-.. _v4l2-event-src-change:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-event-src-change:
+
 .. flat-table:: struct v4l2_event_src_change
     :header-rows:  0
     :stub-columns: 0
@@ -480,10 +480,10 @@
 
 
 
-.. _v4l2-event-motion-det:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-event-motion-det:
+
 .. flat-table:: struct v4l2_event_motion_det
     :header-rows:  0
     :stub-columns: 0
@@ -525,10 +525,10 @@
 
 
 
-.. _ctrl-changes-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _ctrl-changes-flags:
+
 .. flat-table:: Control Changes
     :header-rows:  0
     :stub-columns: 0
@@ -566,10 +566,10 @@
 
 
 
-.. _src-changes-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _src-changes-flags:
+
 .. flat-table:: Source Changes
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst b/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst
index b2bf4f3..7054e36 100644
--- a/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst
+++ b/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst
@@ -54,10 +54,10 @@
 that doesn't support them will return an ``EINVAL`` error code.
 
 
-.. _v4l2-bt-timings-cap:
-
 .. tabularcolumns:: |p{1.2cm}|p{3.0cm}|p{13.3cm}|
 
+.. _v4l2-bt-timings-cap:
+
 .. flat-table:: struct v4l2_bt_timings_cap
     :header-rows:  0
     :stub-columns: 0
@@ -141,10 +141,10 @@
 
 
 
-.. _v4l2-dv-timings-cap:
-
 .. tabularcolumns:: |p{1.0cm}|p{3.5cm}|p{3.5cm}|p{9.5cm}|
 
+.. _v4l2-dv-timings-cap:
+
 .. flat-table:: struct v4l2_dv_timings_cap
     :header-rows:  0
     :stub-columns: 0
@@ -206,7 +206,6 @@
 
 .. tabularcolumns:: |p{7.0cm}|p{10.5cm}|
 
-
 .. _dv-bt-cap-capabilities:
 
 .. flat-table:: DV BT Timing capabilities
diff --git a/Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst b/Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst
index 18e955f..795d921 100644
--- a/Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst
+++ b/Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst
@@ -64,10 +64,10 @@
 introduced in Linux 2.6.21.
 
 
-.. _v4l2-encoder-cmd:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-encoder-cmd:
+
 .. flat-table:: struct v4l2_encoder_cmd
     :header-rows:  0
     :stub-columns: 0
@@ -103,10 +103,10 @@
 
 
 
-.. _encoder-cmds:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _encoder-cmds:
+
 .. flat-table:: Encoder Commands
     :header-rows:  0
     :stub-columns: 0
@@ -165,11 +165,10 @@
 	  flags are defined for this command.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _encoder-flags:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: Encoder Command Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-enum-fmt.rst b/Documentation/media/uapi/v4l/vidioc-enum-fmt.rst
index 2d1444b..da0b888 100644
--- a/Documentation/media/uapi/v4l/vidioc-enum-fmt.rst
+++ b/Documentation/media/uapi/v4l/vidioc-enum-fmt.rst
@@ -46,10 +46,10 @@
    formats may be different.
 
 
-.. _v4l2-fmtdesc:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-fmtdesc:
+
 .. flat-table:: struct v4l2_fmtdesc
     :header-rows:  0
     :stub-columns: 0
@@ -108,6 +108,7 @@
        -  :cspan:`2`
 
 	  .. _v4l2-fourcc:
+
 	  ``#define v4l2_fourcc(a,b,c,d)``
 
 	  ``(((__u32)(a)<<0)|((__u32)(b)<<8)|((__u32)(c)<<16)|((__u32)(d)<<24))``
@@ -131,10 +132,10 @@
 
 
 
-.. _fmtdesc-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _fmtdesc-flags:
+
 .. flat-table:: Image Format Description Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-enum-freq-bands.rst b/Documentation/media/uapi/v4l/vidioc-enum-freq-bands.rst
index c6ae6f1..8fac84d 100644
--- a/Documentation/media/uapi/v4l/vidioc-enum-freq-bands.rst
+++ b/Documentation/media/uapi/v4l/vidioc-enum-freq-bands.rst
@@ -43,10 +43,10 @@
 of the corresponding tuner/modulator is set.
 
 
-.. _v4l2-frequency-band:
-
 .. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
 
+.. _v4l2-frequency-band:
+
 .. flat-table:: struct v4l2_frequency_band
     :header-rows:  0
     :stub-columns: 0
@@ -152,10 +152,10 @@
 
 
 
-.. _band-modulation:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _band-modulation:
+
 .. flat-table:: Band Modulation Systems
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-enuminput.rst b/Documentation/media/uapi/v4l/vidioc-enuminput.rst
index 8f0b821..f818807 100644
--- a/Documentation/media/uapi/v4l/vidioc-enuminput.rst
+++ b/Documentation/media/uapi/v4l/vidioc-enuminput.rst
@@ -41,10 +41,10 @@
 at index zero, incrementing by one until the driver returns ``EINVAL``.
 
 
-.. _v4l2-input:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-input:
+
 .. flat-table:: struct v4l2_input
     :header-rows:  0
     :stub-columns: 0
@@ -150,10 +150,10 @@
 
 
 
-.. _input-type:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _input-type:
+
 .. flat-table:: Input Types
     :header-rows:  0
     :stub-columns: 0
@@ -179,10 +179,10 @@
 
 
 
-.. _input-status:
-
 .. tabularcolumns:: |p{4.8cm}|p{2.6cm}|p{10.1cm}|
 
+.. _input-status:
+
 .. flat-table:: Input Status Flags
     :header-rows:  0
     :stub-columns: 0
@@ -324,10 +324,10 @@
 
 
 
-.. _input-capabilities:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _input-capabilities:
+
 .. flat-table:: Input capabilities
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-enumoutput.rst b/Documentation/media/uapi/v4l/vidioc-enumoutput.rst
index 456013f..6d50b29 100644
--- a/Documentation/media/uapi/v4l/vidioc-enumoutput.rst
+++ b/Documentation/media/uapi/v4l/vidioc-enumoutput.rst
@@ -42,10 +42,10 @@
 EINVAL.
 
 
-.. _v4l2-output:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-output:
+
 .. flat-table:: struct v4l2_output
     :header-rows:  0
     :stub-columns: 0
@@ -140,10 +140,10 @@
 
 
 
-.. _output-type:
-
 .. tabularcolumns:: |p{7.0cm}|p{1.8cm}|p{8.7cm}|
 
+.. _output-type:
+
 .. flat-table:: Output Type
     :header-rows:  0
     :stub-columns: 0
@@ -177,10 +177,10 @@
 
 
 
-.. _output-capabilities:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _output-capabilities:
+
 .. flat-table:: Output capabilities
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-enumstd.rst b/Documentation/media/uapi/v4l/vidioc-enumstd.rst
index 28f00a0..2735b04 100644
--- a/Documentation/media/uapi/v4l/vidioc-enumstd.rst
+++ b/Documentation/media/uapi/v4l/vidioc-enumstd.rst
@@ -141,11 +141,10 @@
        -
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
 .. _v4l2-std-id:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
-
 .. flat-table:: typedef v4l2_std_id
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-audio.rst b/Documentation/media/uapi/v4l/vidioc-g-audio.rst
index 21fa557..703091b 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-audio.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-audio.rst
@@ -50,10 +50,10 @@
 return the actual new audio mode.
 
 
-.. _v4l2-audio:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-audio:
+
 .. flat-table:: struct v4l2_audio
     :header-rows:  0
     :stub-columns: 0
@@ -106,10 +106,10 @@
 
 
 
-.. _audio-capability:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _audio-capability:
+
 .. flat-table:: Audio Capability Flags
     :header-rows:  0
     :stub-columns: 0
@@ -137,10 +137,10 @@
 
 
 
-.. _audio-mode:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _audio-mode:
+
 .. flat-table:: Audio Mode Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst b/Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst
index 58dec57..013f492 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst
@@ -68,10 +68,10 @@
     The device is busy and therefore can not change the timings.
 
 
-.. _v4l2-bt-timings:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-bt-timings:
+
 .. flat-table:: struct v4l2_bt_timings
     :header-rows:  0
     :stub-columns: 0
@@ -223,10 +223,10 @@
 
 
 
-.. _v4l2-dv-timings:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
 
+.. _v4l2-dv-timings:
+
 .. flat-table:: struct v4l2_dv_timings
     :header-rows:  0
     :stub-columns: 0
@@ -267,12 +267,10 @@
 
        -
 
-
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
 .. _dv-timing-types:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
-
 .. flat-table:: DV Timing types
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-enc-index.rst b/Documentation/media/uapi/v4l/vidioc-g-enc-index.rst
index 9cb98a8..64e7478 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-enc-index.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-enc-index.rst
@@ -57,10 +57,10 @@
 video elementary streams.
 
 
-.. _v4l2-enc-idx:
-
 .. tabularcolumns:: |p{3.5cm}|p{5.6cm}|p{8.4cm}|
 
+.. _v4l2-enc-idx:
+
 .. flat-table:: struct v4l2_enc_idx
     :header-rows:  0
     :stub-columns: 0
@@ -105,10 +105,10 @@
 
 
 
-.. _v4l2-enc-idx-entry:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-enc-idx-entry:
+
 .. flat-table:: struct v4l2_enc_idx_entry
     :header-rows:  0
     :stub-columns: 0
@@ -163,11 +163,10 @@
 	  zero.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _enc-idx-flags:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: Index Entry Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst b/Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst
index 33445c6..5b80481 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst
@@ -95,10 +95,10 @@
 still cause this situation.
 
 
-.. _v4l2-ext-control:
-
 .. tabularcolumns:: |p{1.2cm}|p{3.0cm}|p{1.5cm}|p{11.8cm}|
 
+.. _v4l2-ext-control:
+
 .. cssclass: longtable
 
 .. flat-table:: struct v4l2_ext_control
@@ -229,11 +229,10 @@
 	  ``V4L2_CTRL_FLAG_HAS_PAYLOAD`` is set for this control.
 
 
+.. tabularcolumns:: |p{4.0cm}|p{3.0cm}|p{2.0cm}|p{8.5cm}|
 
 .. _v4l2-ext-controls:
 
-.. tabularcolumns:: |p{4.0cm}|p{3.0cm}|p{2.0cm}|p{8.5cm}|
-
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_ext_controls
@@ -367,11 +366,10 @@
 	  Ignored if ``count`` equals zero.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _ctrl-class:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: Control classes
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-fbuf.rst b/Documentation/media/uapi/v4l/vidioc-g-fbuf.rst
index a6cbc53..562505c 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-fbuf.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-fbuf.rst
@@ -76,10 +76,10 @@
 destructive video overlay.
 
 
-.. _v4l2-framebuffer:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
 
+.. _v4l2-framebuffer:
+
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_framebuffer
@@ -284,11 +284,10 @@
        -  Reserved. Drivers and applications must set this field to zero.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _framebuffer-cap:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: Frame Buffer Capability Flags
     :header-rows:  0
     :stub-columns: 0
@@ -374,11 +373,10 @@
 	  exactly opposite of ``V4L2_FBUF_CAP_CHROMAKEY``
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _framebuffer-flags:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. cssclass:: longtable
 
 .. flat-table:: Frame Buffer Flags
diff --git a/Documentation/media/uapi/v4l/vidioc-g-frequency.rst b/Documentation/media/uapi/v4l/vidioc-g-frequency.rst
index bf0c1a1..c0468ff 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-frequency.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-frequency.rst
@@ -52,10 +52,10 @@
 write-only ioctl, it does not return the actual new frequency.
 
 
-.. _v4l2-frequency:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-frequency:
+
 .. flat-table:: struct v4l2_frequency
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst b/Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst
index 9b87c7f..a5a997d 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst
@@ -55,10 +55,10 @@
 encoding. You usually do want to add them.
 
 
-.. _v4l2-jpegcompression:
-
 .. tabularcolumns:: |p{1.2cm}|p{3.0cm}|p{13.3cm}|
 
+.. _v4l2-jpegcompression:
+
 .. flat-table:: struct v4l2_jpegcompression
     :header-rows:  0
     :stub-columns: 0
@@ -128,11 +128,10 @@
 	  and ignore this field.
 
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
 .. _jpeg-markers:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
-
 .. flat-table:: JPEG Markers Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-modulator.rst b/Documentation/media/uapi/v4l/vidioc-g-modulator.rst
index 52c7b95..0b362fc 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-modulator.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-modulator.rst
@@ -61,10 +61,10 @@
 :ref:`VIDIOC_S_FREQUENCY <VIDIOC_G_FREQUENCY>` ioctl is available.
 
 
-.. _v4l2-modulator:
-
 .. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
 
+.. _v4l2-modulator:
+
 .. flat-table:: struct v4l2_modulator
     :header-rows:  0
     :stub-columns: 0
@@ -162,10 +162,10 @@
 
 
 
-.. _modulator-txsubchans:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _modulator-txsubchans:
+
 .. flat-table:: Modulator Audio Transmission Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-parm.rst b/Documentation/media/uapi/v4l/vidioc-g-parm.rst
index 7c32fe9..1b04461 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-parm.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-parm.rst
@@ -50,10 +50,10 @@
 union holding separate parameters for input and output devices.
 
 
-.. _v4l2-streamparm:
-
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
 
+.. _v4l2-streamparm:
+
 .. flat-table:: struct v4l2_streamparm
     :header-rows:  0
     :stub-columns: 0
@@ -111,10 +111,10 @@
 
 
 
-.. _v4l2-captureparm:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-captureparm:
+
 .. flat-table:: struct v4l2_captureparm
     :header-rows:  0
     :stub-columns: 0
@@ -194,10 +194,10 @@
 
 
 
-.. _v4l2-outputparm:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-outputparm:
+
 .. flat-table:: struct v4l2_outputparm
     :header-rows:  0
     :stub-columns: 0
@@ -284,10 +284,10 @@
 
 
 
-.. _parm-caps:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _parm-caps:
+
 .. flat-table:: Streaming Parameters Capabilites
     :header-rows:  0
     :stub-columns: 0
@@ -305,10 +305,10 @@
 
 
 
-.. _parm-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _parm-flags:
+
 .. flat-table:: Capture Parameters Flags
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-g-tuner.rst b/Documentation/media/uapi/v4l/vidioc-g-tuner.rst
index a52efdf..9798a1a 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-tuner.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-tuner.rst
@@ -262,10 +262,10 @@
 
 
 
-.. _v4l2-tuner-type:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _v4l2-tuner-type:
+
 .. flat-table:: enum v4l2_tuner_type
     :header-rows:  0
     :stub-columns: 0
@@ -306,10 +306,10 @@
        - Tuner controls the RF part of a Sofware Digital Radio (SDR)
 
 
-.. _tuner-capability:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _tuner-capability:
+
 .. cssclass:: longtable
 
 .. flat-table:: Tuner and Modulator Capability Flags
@@ -468,10 +468,10 @@
 
 
 
-.. _tuner-rxsubchans:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _tuner-rxsubchans:
+
 .. flat-table:: Tuner Audio Reception Flags
     :header-rows:  0
     :stub-columns: 0
@@ -537,10 +537,10 @@
 
 
 
-.. _tuner-audmode:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _tuner-audmode:
+
 .. flat-table:: Tuner Audio Modes
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-querycap.rst b/Documentation/media/uapi/v4l/vidioc-querycap.rst
index 05d86b2..5b9922e 100644
--- a/Documentation/media/uapi/v4l/vidioc-querycap.rst
+++ b/Documentation/media/uapi/v4l/vidioc-querycap.rst
@@ -41,10 +41,10 @@
 specification the ioctl returns an ``EINVAL`` error code.
 
 
-.. _v4l2-capability:
-
 .. tabularcolumns:: |p{1.5cm}|p{2.5cm}|p{13cm}|
 
+.. _v4l2-capability:
+
 .. flat-table:: struct v4l2_capability
     :header-rows:  0
     :stub-columns: 0
@@ -170,10 +170,10 @@
 
 
 
-.. _device-capabilities:
-
 .. tabularcolumns:: |p{6cm}|p{2.2cm}|p{8.8cm}|
 
+.. _device-capabilities:
+
 .. cssclass:: longtable
 
 .. flat-table:: Device Capabilities Flags
diff --git a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst
index 437f0f7..6e4912f 100644
--- a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst
+++ b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst
@@ -94,10 +94,10 @@
 See also the examples in :ref:`control`.
 
 
-.. _v4l2-queryctrl:
-
 .. tabularcolumns:: |p{1.2cm}|p{3.6cm}|p{12.7cm}|
 
+.. _v4l2-queryctrl:
+
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_queryctrl
@@ -218,10 +218,10 @@
 
 
 
-.. _v4l2-query-ext-ctrl:
-
 .. tabularcolumns:: |p{1.2cm}|p{5.0cm}|p{11.3cm}|
 
+.. _v4l2-query-ext-ctrl:
+
 .. cssclass:: longtable
 
 .. flat-table:: struct v4l2_query_ext_ctrl
@@ -384,10 +384,10 @@
 
 
 
-.. _v4l2-querymenu:
-
 .. tabularcolumns:: |p{1.2cm}|p{0.6cm}|p{1.6cm}|p{13.5cm}|
 
+.. _v4l2-querymenu:
+
 .. flat-table:: struct v4l2_querymenu
     :header-rows:  0
     :stub-columns: 0
@@ -454,10 +454,10 @@
 
 
 
-.. _v4l2-ctrl-type:
-
 .. tabularcolumns:: |p{5.8cm}|p{1.4cm}|p{1.0cm}|p{1.4cm}|p{6.9cm}|
 
+.. _v4l2-ctrl-type:
+
 .. cssclass:: longtable
 
 .. flat-table:: enum v4l2_ctrl_type
@@ -655,10 +655,10 @@
 
 
 
-.. _control-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _control-flags:
+
 .. cssclass:: longtable
 
 .. flat-table:: Control Flags
diff --git a/Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst b/Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst
index 3e4e1f1..2bc10eb 100644
--- a/Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst
+++ b/Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst
@@ -61,10 +61,10 @@
 error code is returned and no seek takes place.
 
 
-.. _v4l2-hw-freq-seek:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-hw-freq-seek:
+
 .. flat-table:: struct v4l2_hw_freq_seek
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst b/Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst
index a16b3dd..f5e9b40 100644
--- a/Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst
+++ b/Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst
@@ -75,10 +75,10 @@
 should be as close as possible to the original request.
 
 
-.. _v4l2-subdev-format:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-subdev-format:
+
 .. flat-table:: struct v4l2_subdev_format
     :header-rows:  0
     :stub-columns: 0
@@ -122,10 +122,10 @@
 
 
 
-.. _v4l2-subdev-format-whence:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _v4l2-subdev-format-whence:
+
 .. flat-table:: enum v4l2_subdev_format_whence
     :header-rows:  0
     :stub-columns: 0
diff --git a/Documentation/media/uapi/v4l/vidioc-subscribe-event.rst b/Documentation/media/uapi/v4l/vidioc-subscribe-event.rst
index 7ae35af..7107974 100644
--- a/Documentation/media/uapi/v4l/vidioc-subscribe-event.rst
+++ b/Documentation/media/uapi/v4l/vidioc-subscribe-event.rst
@@ -38,10 +38,10 @@
 using the :ref:`VIDIOC_DQEVENT` ioctl.
 
 
-.. _v4l2-event-subscription:
-
 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
 
+.. _v4l2-event-subscription:
+
 .. flat-table:: struct v4l2_event_subscription
     :header-rows:  0
     :stub-columns: 0
@@ -91,10 +91,10 @@
 
 
 
-.. _event-flags:
-
 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
 
+.. _event-flags:
+
 .. flat-table:: Event Flags
     :header-rows:  0
     :stub-columns: 0