diff options
author | David Howells <dhowells@redhat.com> | 2013-04-11 21:29:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:40 -0400 |
commit | 34db8aaf0f95ffac407d39da22972b38da631db4 (patch) | |
tree | dd9e9cf4e7882a800ad0d3b7bb1ea9ae4d4515cd /include/linux/of.h | |
parent | 4abfd0298900851930310e5d736a7f3a105089ec (diff) |
proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h}
Move some bits from linux/proc_fs.h to linux/of.h, signal.h and tty.h.
Also move proc_tty_init() and proc_device_tree_init() to fs/proc/internal.h as
they're internal to procfs.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
cc: devicetree-discuss@lists.ozlabs.org
cc: linux-arch@vger.kernel.org
cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: Jri Slaby <jslaby@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index a0f129284948..2d25ff8fe39a 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -540,4 +540,14 @@ static inline int of_property_read_u32(const struct device_node *np, | |||
540 | return of_property_read_u32_array(np, propname, out_value, 1); | 540 | return of_property_read_u32_array(np, propname, out_value, 1); |
541 | } | 541 | } |
542 | 542 | ||
543 | #if defined(CONFIG_PROC_FS) && defined(CONFIG_PROC_DEVICETREE) | ||
544 | extern void proc_device_tree_add_node(struct device_node *, struct proc_dir_entry *); | ||
545 | extern void proc_device_tree_add_prop(struct proc_dir_entry *pde, struct property *prop); | ||
546 | extern void proc_device_tree_remove_prop(struct proc_dir_entry *pde, | ||
547 | struct property *prop); | ||
548 | extern void proc_device_tree_update_prop(struct proc_dir_entry *pde, | ||
549 | struct property *newprop, | ||
550 | struct property *oldprop); | ||
551 | #endif | ||
552 | |||
543 | #endif /* _LINUX_OF_H */ | 553 | #endif /* _LINUX_OF_H */ |