summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/modules/hellodriver/patch-kernel-build.diff
blob: 8d43ca759b36849bccd9f1c8202a8f0b5149e964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -urNp a/drivers/char/Kconfig b/drivers/char/Kconfig
--- a/drivers/char/Kconfig	2016-05-16 00:43:13.000000000 +0200
+++ b/drivers/char/Kconfig	2016-06-08 20:41:14.047205734 +0200
@@ -6,6 +6,16 @@ menu "Character devices"
 
 source "drivers/tty/Kconfig"
 
+config HELLO
+	tristate "hello demo driver"
+	default n
+	help
+	  This driver demonstrates how to create a platform device that is
+	  specified in a device tree.
+
+	  It also create a character device to demonstrate how a character
+	  device interface can be provided to userspace.
+
 config DEVMEM
 	bool "/dev/mem virtual device support"
 	default y
diff -urNp a/drivers/char/Makefile b/drivers/char/Makefile
--- a/drivers/char/Makefile	2016-05-16 00:43:13.000000000 +0200
+++ b/drivers/char/Makefile	2016-06-08 14:16:44.897437533 +0200
@@ -16,6 +16,8 @@ obj-$(CONFIG_IBM_BSR)		+= bsr.o
 obj-$(CONFIG_SGI_MBCS)		+= mbcs.o
 obj-$(CONFIG_BFIN_OTP)		+= bfin-otp.o
 
+obj-$(CONFIG_HELLO)		+= hello.o
+
 obj-$(CONFIG_PRINTER)		+= lp.o
 
 obj-$(CONFIG_APM_EMULATION)	+= apm-emulation.o