summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/udlfb.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-18 19:56:40 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-08-18 19:56:40 +0200
commit598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698 (patch)
treeef726ef48a35ef71ffadf156246763ba985e8338 /drivers/video/fbdev/udlfb.c
parentvideo: fbdev: xilinxfb: constify copied structure (diff)
downloadlinux-598b2eedfc3fbe3eb10e27c41ca5ba6a7c6e3698.tar.xz
linux-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/udlfb.c')
-rw-r--r--drivers/video/fbdev/udlfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c
index 05ef657235df..4454eb4f8e83 100644
--- a/drivers/video/fbdev/udlfb.c
+++ b/drivers/video/fbdev/udlfb.c
@@ -1465,7 +1465,7 @@ static ssize_t metrics_reset_store(struct device *fbdev,
return count;
}
-static struct bin_attribute edid_attr = {
+static const struct bin_attribute edid_attr = {
.attr.name = "edid",
.attr.mode = 0666,
.size = EDID_LENGTH,