Skip to content

Commit 071bf69

Browse files
author
Shuah Khan
committed
samples: move watchdog example code from Documentation
Move watchdog examples to samples and remove it from Documentation Makefile. Create a new Makefile to build watchdog. It can be built from top level directory or from watchdog directory: Run make -C samples/watchdog or cd samples/watchdog; make Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
1 parent 155fe00 commit 071bf69

8 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎Documentation/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
subdir-y := accounting auxdisplay blackfin \
2-
laptops pcmcia watchdog
2+
laptops pcmcia

‎Documentation/watchdog/Makefile‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎Documentation/watchdog/src/Makefile‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎Documentation/watchdog/watchdog-api.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ activates as soon as /dev/watchdog is opened and will reboot unless
3737
the watchdog is pinged within a certain time, this time is called the
3838
timeout or margin. The simplest way to ping the watchdog is to write
3939
some data to the device. So a very simple watchdog daemon would look
40-
like this source file: see Documentation/watchdog/src/watchdog-simple.c
40+
like this source file: see samples/watchdog/watchdog-simple.c
4141

4242
A more advanced driver could for example check that a HTTP server is
4343
still responding before doing the write call to ping the watchdog.

‎Documentation/watchdog/wdt.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ The external event interfaces on the WDT boards are not currently supported.
4747
Minor numbers are however allocated for it.
4848

4949

50-
Example Watchdog Driver: see Documentation/watchdog/src/watchdog-simple.c
50+
Example Watchdog Driver: see samples/watchdog/watchdog-simple.c

‎samples/watchdog/Makefile‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CC := $(CROSS_COMPILE)gcc
2+
PROGS := watchdog-simple
3+
4+
all: $(PROGS)
5+
6+
clean:
7+
rm -fr $(PROGS)
8+
File renamed without changes.

0 commit comments

Comments
 (0)