diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-18 19:56:40 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2017-08-18 19:56:40 +0200 |
commit | 598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698 (patch) | |
tree | ef726ef48a35ef71ffadf156246763ba985e8338 /drivers/video/fbdev/aty | |
parent | 228b3811080e5f6a647f33b54d88f68a9b8eabbf (diff) | |
download | linux-stable-598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698.tar.gz linux-stable-598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698.tar.bz2 linux-stable-598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698.zip |
video: fbdev: add const to bin_attribute structures
Add const to bin_attribute structures as they are only passed to the
functions sysfs_{remove/create}_bin_file or
device_{remove/create}_bin_file. The corresponding arguments are of
type const, so declare the structures to be const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/aty')
-rw-r--r-- | drivers/video/fbdev/aty/radeon_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c index dba479e96a9e..1e2ec360f8c1 100644 --- a/drivers/video/fbdev/aty/radeon_base.c +++ b/drivers/video/fbdev/aty/radeon_base.c @@ -2241,7 +2241,7 @@ static ssize_t radeon_show_edid2(struct file *filp, struct kobject *kobj, return radeon_show_one_edid(buf, off, count, rinfo->mon2_EDID); } -static struct bin_attribute edid1_attr = { +static const struct bin_attribute edid1_attr = { .attr = { .name = "edid1", .mode = 0444, @@ -2250,7 +2250,7 @@ static struct bin_attribute edid1_attr = { .read = radeon_show_edid1, }; -static struct bin_attribute edid2_attr = { +static const struct bin_attribute edid2_attr = { .attr = { .name = "edid2", .mode = 0444, |