capi.c (688d794c4c3f8b08c814381ee2edd3ede5856056) | capi.c (d9dda78bad879595d8c4220a067fc029d6484a16) |
---|---|
1/* 2 CMTP implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org> 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License version 2 as 7 published by the Free Software Foundation; 8 --- 525 unchanged lines hidden (view full) --- 534 seq_printf(m, "appl %d -> %d\n", app->appl, app->mapping); 535 } 536 537 return 0; 538} 539 540static int cmtp_proc_open(struct inode *inode, struct file *file) 541{ | 1/* 2 CMTP implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org> 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License version 2 as 7 published by the Free Software Foundation; 8 --- 525 unchanged lines hidden (view full) --- 534 seq_printf(m, "appl %d -> %d\n", app->appl, app->mapping); 535 } 536 537 return 0; 538} 539 540static int cmtp_proc_open(struct inode *inode, struct file *file) 541{ |
542 return single_open(file, cmtp_proc_show, PDE(inode)->data); | 542 return single_open(file, cmtp_proc_show, PDE_DATA(inode)); |
543} 544 545static const struct file_operations cmtp_proc_fops = { 546 .owner = THIS_MODULE, 547 .open = cmtp_proc_open, 548 .read = seq_read, 549 .llseek = seq_lseek, 550 .release = single_release, --- 74 unchanged lines hidden --- | 543} 544 545static const struct file_operations cmtp_proc_fops = { 546 .owner = THIS_MODULE, 547 .open = cmtp_proc_open, 548 .read = seq_read, 549 .llseek = seq_lseek, 550 .release = single_release, --- 74 unchanged lines hidden --- |