diff options
author | Christoph Hellwig | 2018-04-11 18:39:29 +0200 |
---|---|---|
committer | Christoph Hellwig | 2018-05-16 07:24:30 +0200 |
commit | 2cd1f0ddbb5667f61e69089964209e8f716e9009 (patch) | |
tree | 03903b37054967d333cbefad3804c0b137ebe015 /drivers/isdn/gigaset/capi.c | |
parent | atm: switch to proc_create_seq_private (diff) | |
download | kernel-qcow2-linux-2cd1f0ddbb5667f61e69089964209e8f716e9009.tar.gz kernel-qcow2-linux-2cd1f0ddbb5667f61e69089964209e8f716e9009.tar.xz kernel-qcow2-linux-2cd1f0ddbb5667f61e69089964209e8f716e9009.zip |
isdn: replace ->proc_fops with ->proc_show
And switch to proc_create_single_data.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/isdn/gigaset/capi.c')
-rw-r--r-- | drivers/isdn/gigaset/capi.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index ccec7778cad2..dac5cd35e901 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c @@ -2437,19 +2437,6 @@ static int gigaset_proc_show(struct seq_file *m, void *v) return 0; } -static int gigaset_proc_open(struct inode *inode, struct file *file) -{ - return single_open(file, gigaset_proc_show, PDE_DATA(inode)); -} - -static const struct file_operations gigaset_proc_fops = { - .owner = THIS_MODULE, - .open = gigaset_proc_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; - /** * gigaset_isdn_regdev() - register device to LL * @cs: device descriptor structure. @@ -2478,8 +2465,7 @@ int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid) iif->ctr.register_appl = gigaset_register_appl; iif->ctr.release_appl = gigaset_release_appl; iif->ctr.send_message = gigaset_send_message; - iif->ctr.procinfo = gigaset_procinfo; - iif->ctr.proc_fops = &gigaset_proc_fops; + iif->ctr.proc_show = gigaset_proc_show, INIT_LIST_HEAD(&iif->appls); skb_queue_head_init(&iif->sendqueue); atomic_set(&iif->sendqlen, 0); |