aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 03:05:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:10 -0400
commitb1fc3d6144d56360d1373b01c7881826f558b6cd (patch)
tree3bac4c3df21dc74c6373c3e4a22c3ea6b01b1832 /fs/sysfs/sysfs.h
parent078ce6409ca54d5fc6eb7d2147cd6efc3eb09078 (diff)
sysfs: make s_elem an anonymous union
Make s_elem an anonymous union. Prefixing with s_elem makes things needlessly longer without any advantage. Signed-off-by: Tejun Heo <htejun@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index 6cf61c882baa..2a68bfa46e43 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -32,11 +32,11 @@ struct sysfs_dirent {
32 const char *s_name; 32 const char *s_name;
33 33
34 union { 34 union {
35 struct sysfs_elem_dir dir; 35 struct sysfs_elem_dir s_dir;
36 struct sysfs_elem_symlink symlink; 36 struct sysfs_elem_symlink s_symlink;
37 struct sysfs_elem_attr attr; 37 struct sysfs_elem_attr s_attr;
38 struct sysfs_elem_bin_attr bin_attr; 38 struct sysfs_elem_bin_attr s_bin_attr;
39 } s_elem; 39 };
40 40
41 unsigned int s_flags; 41 unsigned int s_flags;
42 ino_t s_ino; 42 ino_t s_ino;