Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10fa813d authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] DocBook media: fix coding style in the control example code



Use the proper kernel coding style in these examples.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent a4c8c262
Loading
Loading
Loading
Loading
+40 −41
Original line number Diff line number Diff line
@@ -441,8 +441,7 @@ more menu type controls.</para>
&v4l2-queryctrl; queryctrl;
&v4l2-querymenu; querymenu;

static void
enumerate_menu (void)
static void enumerate_menu(void)
{
	printf("  Menu items:\n");

@@ -551,7 +550,7 @@ if (0 == ioctl (fd, &VIDIOC-G-CTRL;, &amp;control)) {
}

control.id = V4L2_CID_AUDIO_MUTE;
control.value = TRUE; /* silence */
control.value = 1; /* silence */

/* Errors ignored */
ioctl(fd, VIDIOC_S_CTRL, &amp;control);