]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sysfs: group.c: fix up some * coding style issues
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:07:29 +0000 (16:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:07:29 +0000 (16:07 -0700)
This fixes up the * coding style warnings for the group.c sysfs file.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c

index 14672e9b9172d41f3879198520b0bcf81330f6ab..f4a9d221cbe61816bad4ca07f4696572efcb2cf6 100644 (file)
@@ -19,8 +19,8 @@
 static void remove_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
                         const struct attribute_group *grp)
 {
-       struct attribute *constattr;
-       struct bin_attribute *constbin_attr;
+       struct attribute *const *attr;
+       struct bin_attribute *const *bin_attr;
 
        if (grp->attrs)
                for (attr = grp->attrs; *attr; attr++)
@@ -33,8 +33,8 @@ static void remove_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
 static int create_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
                        const struct attribute_group *grp, int update)
 {
-       struct attribute *constattr;
-       struct bin_attribute *constbin_attr;
+       struct attribute *const *attr;
+       struct bin_attribute *const *bin_attr;
        int error = 0, i;
 
        if (grp->attrs) {
@@ -189,8 +189,8 @@ int sysfs_update_group(struct kobject *kobj,
 }
 EXPORT_SYMBOL_GPL(sysfs_update_group);
 
-void sysfs_remove_group(struct kobject * kobj,
-                       const struct attribute_group * grp)
+void sysfs_remove_group(struct kobject *kobj,
+                       const struct attribute_group *grp)
 {
        struct sysfs_dirent *dir_sd = kobj->sd;
        struct sysfs_dirent *sd;