Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

samples: v4l: from Documentation to samples directory

A small bug with the new autoksyms support showed that there are
two kernel modules in the Documentation directory that qualify
as samples, while all other samples are in the samples/ directory.

This patch was originally meant as a workaround for that bug, but
it has now been solved in a different way. However, I still think
it makes sense as a cleanup to consolidate all sample code in
one place.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Arnd Bergmann and committed by
Jonathan Corbet
934275c4 14fbff6b

+3 -4
+1 -2
Documentation/Makefile
··· 1 1 subdir-y := accounting auxdisplay blackfin \ 2 2 filesystems filesystems ia64 laptops mic misc-devices \ 3 - networking pcmcia prctl ptp timers vDSO video4linux \ 4 - watchdog 3 + networking pcmcia prctl ptp timers vDSO watchdog
Documentation/video4linux/Makefile samples/v4l/Makefile
+1 -1
Documentation/video4linux/v4l2-framework.txt
··· 35 35 common code into utility functions shared by all drivers. 36 36 37 37 A good example to look at as a reference is the v4l2-pci-skeleton.c 38 - source that is available in this directory. It is a skeleton driver for 38 + source that is available in samples/v4l/. It is a skeleton driver for 39 39 a PCI capture card, and demonstrates how to use the V4L2 driver 40 40 framework. It can be used as a template for real PCI video capture driver. 41 41
Documentation/video4linux/v4l2-pci-skeleton.c samples/v4l/v4l2-pci-skeleton.c
+1 -1
samples/Makefile
··· 2 2 3 3 obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \ 4 4 hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ 5 - configfs/ connector/ 5 + configfs/ connector/ v4l/