diff options
author | Tejun Heo | 2007-09-20 09:05:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2007-10-12 23:51:10 +0200 |
commit | b1fc3d6144d56360d1373b01c7881826f558b6cd (patch) | |
tree | 3bac4c3df21dc74c6373c3e4a22c3ea6b01b1832 /fs/sysfs/sysfs.h | |
parent | sysfs: make bin attr open get active reference of parent too (diff) | |
download | kernel-qcow2-linux-b1fc3d6144d56360d1373b01c7881826f558b6cd.tar.gz kernel-qcow2-linux-b1fc3d6144d56360d1373b01c7881826f558b6cd.tar.xz kernel-qcow2-linux-b1fc3d6144d56360d1373b01c7881826f558b6cd.zip |
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.h | 10 |
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 { const char *s_name; union { - struct sysfs_elem_dir dir; - struct sysfs_elem_symlink symlink; - struct sysfs_elem_attr attr; - struct sysfs_elem_bin_attr bin_attr; - } s_elem; + struct sysfs_elem_dir s_dir; + struct sysfs_elem_symlink s_symlink; + struct sysfs_elem_attr s_attr; + struct sysfs_elem_bin_attr s_bin_attr; + }; unsigned int s_flags; ino_t s_ino; |