summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tty: tiny_tty: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* tiny_tty update for 3.10hwangcc2018-02-251-59/+64
| | | | | | | | 1. checkpatch.pl cleanups. 2. Add init_timer 3. Link tty ports. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jit.c: checkpatch.pl cleanupshwangcc2018-02-251-26/+26
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jiq.c: checkpatch.pl cleanupshwangcc2018-02-251-18/+22
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* seq.c: checkpatch.pl cleanupshwangcc2018-02-251-7/+9
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jiq.c: Don't use create_proc_entryhwangcc2018-02-251-50/+75
| | | | | | | Don't use create_proc_read_entry as that is deprecated, but rather use proc_create and seq_file instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jit.c: Don't use create_proc_entryhwangcc2018-02-251-44/+80
| | | | | | | Don't use create_proc_read_entry as that is deprecated, but rather use proc_create and seq_file instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* seq.c: Don't use create_proc_entryhwangcc2018-02-251-3/+1
| | | | | | | Don't use create_proc_entry as that is deprecated, but rather use proc_create instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* scull/acces.c: fix typo in device name: "sullpriv -> scullpriv"brabo2018-02-251-1/+1
|
* Merge pull request #20 from coderkaka/masterMatthias Brugger2016-05-091-6/+6
|\ | | | | Fix failure to compile the scull with kernel of version 4.6.0.
| * Fix failure to compile the scull. The return value of current_xid() has ↵coderkaka2016-05-031-6/+6
| | | | | | | | changed in kernel of version 4.6.0
* | Merge pull request #15 from lushl9301/masterMatthias Brugger2016-05-081-3/+2
|\ \ | | | | | | replace kmalloc with kzalloc
| * | replace kmalloc with kzallocLu Shengliang2014-12-311-3/+2
| |/
* | pci: pci_skel: Check return value of pci_enable_deviceMatthias Brugger2016-05-041-1/+4
| | | | | | | | | | | | | | Omit compiler warning, as pci_enable_device needs to get the return value checked. Signed-off-by: Matthias Brugger <mbrugger@suse.com>
* | README: Add newline on end of last lineMatthias Brugger2016-05-041-1/+1
|/ | | | | | | This patch adds a newline at the end of the last line. This makes reading the file via cat more convenient. Signed-off-by: Matthias Brugger <mbrugger@suse.com>
* Merge pull request #7 from ttousai/masterJavier Martinez Canillas2013-12-231-5/+5
|\ | | | | Fixed failure to load scull module and description typo in scull.init.
| * Fixed failure to load scull module and description typo in scull.init.Davis Abubakr-Sadik Nii Nai2013-12-181-5/+5
|/ | | | | | The scull.init initialization file fails to load scull module because it tries to load modules in the configured paths with .o suffix instead of .ko.
* Merge pull request #6 from dhyannataraj/masterJavier Martinez Canillas2013-12-071-0/+17
|\ | | | | Proposial of README.Debian file that explains Debian users how to build examples for current prebuilt linux kernel
| * Proposial of README.Debian file that explains Debian users how to buildNikolay Shaplov2013-12-071-0/+17
| | | | | | | | examples for current prebuilt linux kernel
* | Merge pull request #5 from tatetian/masterJavier Martinez Canillas2013-12-071-1/+1
|\ \ | |/ |/| Fix a memory mapping bug in sbull.c
| * Fix a memory mapping bug in sbull.cHongliang TIAN2013-10-291-1/+1
|/
* lddbus: add member init_name to ldd_bus device declarationLuis Ortega Perez de Villar2013-09-281-2/+2
| | | | | | The member init_name replaces bus_id, a string that identifies the device on the bus. This patch reverts commit bca2bf1d1d28deee3bef691371d9aae2cbbb0f4b
* sbull/sbull.c: block_device_operations->release() should return voidLuis Ortega Perez de Villar2013-09-281-3/+1
| | | | | | | | | | | | The return type of block_device_operations->release() changed from int to void in commit db2a144bedd58b3dcf19950c2f476c58c9f39d18 Fixes the following compiler warning: sbull/sbull.c:313:2: warning: initialization from incompatible pointer type [enabled by default] sbull/sbull.c:313:2: warning: (near initialization for ‘sbull_ops.release’) [enabled by default]
* sbull/sbull.c: sbull_make_request() should return voidLuis Ortega Perez de Villar2013-09-281-1/+0
| | | | | sbull/sbull.c:194:2: warning: ‘return’ with a value, in function returning void [enabled by default]
* sculld: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* sculld: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* lddbus: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-2/+3
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: lddbus.h: No such file or directory.
* scullv: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullv: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* scullp: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullp: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* scullc: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullc: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* Merge pull request #3 from luiorpe1/scull-3.10Javier Martinez Canillas2013-08-143-73/+73
|\ | | | | Scull updated for 3.10
| * scull: main | pipe : Fix coding styleLuis Ortega Perez de Villar2013-07-192-32/+32
| | | | | | | | | | Replace white space indentation introduced with the previous patch with 8 characters width TABs to comply with the kernel coding style.
| * scull: pipe: Remove unused commented lineLuis Ortega Perez de Villar2013-07-191-1/+0
| | | | | | | | | | Remove commented line with deprecated create_proc_read_entry call that was forgotten to remove.
| * Don't use create_proc_entry() and create_proc_read_entry()Luis Ortega Perez de Villar2013-07-192-78/+77
| | | | | | | | | | | | Don't use create_proc_entry() and create_proc_read_entry() as they are deprecated, but rather use proc_create() and proc_create_data() respectively and seq_file instead.
| * scull: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-07-181-1/+3
|/ | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* README: update project goal according to realityJavier Martinez Canillas2013-04-271-20/+4
| | | | | | | | | | | | | | | | | | | | | | | | The initial goal of this project was to update the LDD3 example drivers to recent kernels so they can be used by students to learn about driver development under Linux. The idea was to not only update the drivers but also add new drivers that show newer kernel facilities that did not exist (or was not common) by the time the LDD3 book was written. Unfortunately I haven't had time to work on this for years so it's better to just try to keep the current drivers building and working. Also, only maintain the master branch that should track Linus master tree. Anyone that is interested on kernel hacking should develop against the latest master tree anyways. If someone needs to use an older kernel version it shouldn't be hard to figure out what commit id could be used for any specific kernel version. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* tty: update termios access due tty_struct changesJavier Martinez Canillas2013-04-271-2/+2
| | | | | | | | | | commit adc8d746 ("tty: move the termios object into the tty") moved the struct ktermios inside struct tty_struct instead of keeping just a pointer to it. So, let's update the access to termios according to this change. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* tty: pass tty_port to tty functions instead of tty_structJavier Martinez Canillas2013-04-272-6/+11
| | | | | | | | | | commit 227434f8 ("TTY: switch tty_buffer_request_room to tty_port") started to convert all tty functions to receive a tty_port instead of a tt_struct. Update the drivers according this API change. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* usb: usb-skeleton: use dev_dbg() instead deprecated dbg()Javier Martinez Canillas2013-04-261-2/+5
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* ldd3: get rid of deprecated VM_RESERVED vma flagJavier Martinez Canillas2013-04-265-10/+0
| | | | | | | | | | | | | | commit 314e51b9 ("mm: kill vma flag VM_RESERVED and mm->reserved_vm counter") removed the VM_RESERVED vma flag since it lost original meaning. VM_RESERVED was used on many drivers' mmap function handler to avoid swap this memory area. The same semantic can be specified with VM_IO | VM_DONTDUMP flags but these are already set by remap_pfn_range() so they don't have to be set in drivers mmap function handlers. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* simple: use libfs simple_openJavier Martinez Canillas2013-02-041-8/+0
| | | | | | | libfs now has a simple_open handler functions that is a noop. So, is better to use this instead of a custom implementation. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* Merge pull request #1 from wangwangwar/masterJavier Martinez Canillas2012-12-171-0/+29
|\ | | | | Add a .gitignore
| * Add a .gitignoreShulin2012-12-171-0/+29
|/ | | | Signed-off-by: Shulin <wangwangwar@gmail.com>
* usb-skeleton: Use pr_err() instead of deprecated err() macrov3.4Javier Martinez Canillas2012-05-061-7/+7
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* scull: Remove desintegrated asm/system.h headerJavier Martinez Canillas2012-05-061-1/+0
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUMv3.3.4Javier Martinez Canillas2012-05-061-1/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* sbull: Update sbull_make_request function to make_request_fn new signatureJavier Martinez Canillas2012-05-061-1/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>