diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-02 19:07:22 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-08-03 14:16:29 +0300 |
commit | c7e85ae5eaab5c12fb4a2f65ffef1c3350072110 (patch) | |
tree | 2979c01a95fd82c5f4cb1ccfd4ff78544cd1b251 /drivers/s390/char | |
parent | 83a8842438c02f02de3c87ae9038ae0e9f808540 (diff) | |
download | linux-c7e85ae5eaab5c12fb4a2f65ffef1c3350072110.tar.xz |
s390/sclp: add const to bin_attribute structure
Declare bin_attribute structure as const as it is only passed as an
argument to the function sysfs_create_bin_file. This argument is of
type const, so declare the structure as const.
Cross compiled for s390 architecture.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/sclp_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_config.c b/drivers/s390/char/sclp_config.c index 1406fb688a26..7003d52c2191 100644 --- a/drivers/s390/char/sclp_config.c +++ b/drivers/s390/char/sclp_config.c @@ -135,7 +135,7 @@ static ssize_t sysfs_ofb_data_write(struct file *filp, struct kobject *kobj, return rc ?: count; } -static struct bin_attribute ofb_bin_attr = { +static const struct bin_attribute ofb_bin_attr = { .attr = { .name = "event_data", .mode = S_IWUSR, |