mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
proc: introduce proc_create_seq_private
Variant of proc_create_data that directly take a struct seq_operations argument + a private state size and drastically reduces the boilerplate code in the callers. All trivial callers converted over. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
fddda2b7b5
commit
44414d82cf
12 changed files with 37 additions and 113 deletions
|
@ -236,7 +236,8 @@ int __init atalk_proc_init(void)
|
|||
if (!p)
|
||||
goto out_socket;
|
||||
|
||||
p = proc_create("arp", 0444, atalk_proc_dir, &atalk_seq_arp_fops);
|
||||
p = proc_create_seq_private("arp", 0444, atalk_proc_dir, &aarp_seq_ops,
|
||||
sizeof(struct aarp_iter_state), NULL);
|
||||
if (!p)
|
||||
goto out_arp;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue