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

Commit 14fbff6b authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet
Browse files

samples: connector: 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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 715cda78
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
subdir-y := accounting auxdisplay blackfin connector \
subdir-y := accounting auxdisplay blackfin \
	filesystems filesystems ia64 laptops mic misc-devices \
	filesystems filesystems ia64 laptops mic misc-devices \
	networking pcmcia prctl ptp timers vDSO video4linux \
	networking pcmcia prctl ptp timers vDSO video4linux \
	watchdog
	watchdog
+8 −0
Original line number Original line Diff line number Diff line
@@ -186,3 +186,11 @@ only cn_test.c test module used it.
Some work in netlink area is still being done, so things can be changed in
Some work in netlink area is still being done, so things can be changed in
2.6.15 timeframe, if it will happen, documentation will be updated for that
2.6.15 timeframe, if it will happen, documentation will be updated for that
kernel.
kernel.

/*****************************************/
Code samples
/*****************************************/

Sample code for a connector test module and user space can be found
in samples/connector/. To build this code, enable CONFIG_CONNECTOR
and CONFIG_SAMPLES.
+9 −0
Original line number Original line Diff line number Diff line
@@ -76,4 +76,13 @@ config SAMPLE_CONFIGFS
	help
	help
	  Builds a sample configfs interface.
	  Builds a sample configfs interface.


config SAMPLE_CONNECTOR
	tristate "Build connector sample -- loadable modules only"
	depends on CONNECTOR && m
	help
	  When enabled, this builds both a sample kernel module for
	  the connector interface and a user space tool to communicate
	  with it.
	  See also Documentation/connector/connector.txt

endif # SAMPLES
endif # SAMPLES
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,4 +2,4 @@


obj-$(CONFIG_SAMPLES)	+= kobject/ kprobes/ trace_events/ livepatch/ \
obj-$(CONFIG_SAMPLES)	+= kobject/ kprobes/ trace_events/ livepatch/ \
			   hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
			   hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
			   configfs/
			   configfs/ connector/
Loading