diff options
author | David Howells <dhowells@redhat.com> | 2013-04-11 19:38:51 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:18 -0400 |
commit | 271a15eabe094538d958dc68ccfc9c36b699247a (patch) | |
tree | 586e33f88cece63828614b2a2f0e92007064f024 /drivers/pci/proc.c | |
parent | 2f96b8c1d5d492c1d0457b253015330f844136f6 (diff) |
proc: Supply PDE attribute setting accessor functions
Supply accessor functions to set attributes in proc_dir_entry structs.
The following are supplied: proc_set_size() and proc_set_user().
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
cc: linuxppc-dev@lists.ozlabs.org
cc: linux-media@vger.kernel.org
cc: netdev@vger.kernel.org
cc: linux-wireless@vger.kernel.org
cc: linux-pci@vger.kernel.org
cc: netfilter-devel@vger.kernel.org
cc: alsa-devel@alsa-project.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/pci/proc.c')
-rw-r--r-- | drivers/pci/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 12e4fb5824c1..7cde7c131fd0 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c | |||
@@ -419,7 +419,7 @@ int pci_proc_attach_device(struct pci_dev *dev) | |||
419 | &proc_bus_pci_operations, dev); | 419 | &proc_bus_pci_operations, dev); |
420 | if (!e) | 420 | if (!e) |
421 | return -ENOMEM; | 421 | return -ENOMEM; |
422 | e->size = dev->cfg_size; | 422 | proc_set_size(e, dev->cfg_size); |
423 | dev->procent = e; | 423 | dev->procent = e; |
424 | 424 | ||
425 | return 0; | 425 | return 0; |