wlcore: add const to bin_attribute structure
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 2 Aug 2017 17:57:13 +0000 (23:27 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Aug 2017 11:52:35 +0000 (14:52 +0300)
Add const to bin_attribute structure as it is only passed to the
functions sysfs_{remove/create}_bin_file. The corresponding arguments
are of type const, so declare the structure to be const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/sysfs.c

index a9218e5..b72e210 100644 (file)
@@ -138,7 +138,7 @@ static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj,
        return len;
 }
 
-static struct bin_attribute fwlog_attr = {
+static const struct bin_attribute fwlog_attr = {
        .attr = {.name = "fwlog", .mode = S_IRUSR},
        .read = wl1271_sysfs_read_fwlog,
 };