diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /vidix/dhahelper | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/dhahelper')
-rw-r--r-- | vidix/dhahelper/dhahelper.c | 20 | ||||
-rw-r--r-- | vidix/dhahelper/test.c | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/vidix/dhahelper/dhahelper.c b/vidix/dhahelper/dhahelper.c index 8c1dc27e4f..498f6537e6 100644 --- a/vidix/dhahelper/dhahelper.c +++ b/vidix/dhahelper/dhahelper.c @@ -34,10 +34,10 @@ Usage: mknod -m 666 /dev/dhahelper c 180 0 - + Also you can change the major number, setting the "dhahelper_major" module parameter, the default is 180, specified in dhahelper.h. - + Note: do not use other than minor==0, the module forbids it. TODO: @@ -236,7 +236,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file, printk(KERN_ERR "dhahelper: failed copy to userspace\n"); return -EFAULT; } - + break; } case DHAHELPER_MEMORY: @@ -249,7 +249,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file, printk(KERN_ERR "dhahelper: failed copy from userspace\n"); return -EFAULT; } - + switch(mem.operation) { case MEMORY_OP_MAP: @@ -271,14 +271,14 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file, mem.operation); return -EINVAL; } - + if (copy_to_user((dhahelper_memory_t *)arg, &mem, sizeof(dhahelper_memory_t))) { if (dhahelper_verbosity > 0) printk(KERN_ERR "dhahelper: failed copy to userspace\n"); return -EFAULT; } - + break; } default: @@ -298,11 +298,11 @@ static int dhahelper_mmap(struct file *file, struct vm_area_struct *vma) printk(KERN_ERR "dhahelper: mapping not requested before mmap\n"); return -EFAULT; } - + if (dhahelper_verbosity > 1) printk(KERN_INFO "dhahelper: mapping %x (size: %x)\n", last_mem_request.start+last_mem_request.offset, last_mem_request.size); - + if (remap_page_range(0, last_mem_request.start + last_mem_request.offset, last_mem_request.size, vma->vm_page_prot)) { @@ -342,7 +342,7 @@ static struct file_operations dhahelper_fops = #if KERNEL_VERSION < KERNEL_VERSION(2,4,0) int init_module(void) -#else +#else static int __init init_dhahelper(void) #endif { @@ -355,7 +355,7 @@ static int __init init_dhahelper(void) dhahelper_major); return -EIO; } - + return 0; } diff --git a/vidix/dhahelper/test.c b/vidix/dhahelper/test.c index 78f8250d99..59e356efea 100644 --- a/vidix/dhahelper/test.c +++ b/vidix/dhahelper/test.c @@ -27,7 +27,7 @@ #include <errno.h> #include <fcntl.h> #include <sys/mman.h> - + #include "dhahelper.h" int main(int argc, char *argv[]) @@ -58,13 +58,13 @@ int main(int argc, char *argv[]) printf("ret: %s\n", strerror(errno)); mem.ret = (int)mmap(NULL, (size_t)mem.size, PROT_READ, MAP_SHARED, fd, (off_t)0); - printf("allocated to %x\n", mem.ret); + printf("allocated to %x\n", mem.ret); if (argc > 1) if (mem.ret != 0) { int i; - + for (i = 0; i < 256; i++) printf("[%x] ", *(int *)(mem.ret+i)); printf("\n"); |