summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-01-16 18:35:20 +0300
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-01-16 18:35:20 +0300
commitfa738a5c4b2a6b06f9c3755e9fc995d96833ade1 (patch)
treeac95534ab55b6fe8c4e45671e913467932c3ef68 /drivers/video/fbdev
parentc1530ac5a3ce93a1f02adabc4508b5fbf862dfe2 (diff)
downloadlinux-fa738a5c4b2a6b06f9c3755e9fc995d96833ade1.tar.xz
video: udlfb: Constify read only data
Both dlfb_fix and fb_device_attrs are never written to, so it is safe to make them const. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Cc: Bernie Thompson <bernie@plugable.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/udlfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c
index 47e31668f316..f0118c10b4ab 100644
--- a/drivers/video/fbdev/udlfb.c
+++ b/drivers/video/fbdev/udlfb.c
@@ -32,7 +32,7 @@
#include <video/udlfb.h>
#include "edid.h"
-static struct fb_fix_screeninfo dlfb_fix = {
+static const struct fb_fix_screeninfo dlfb_fix = {
.id = "udlfb",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_TRUECOLOR,
@@ -1455,7 +1455,7 @@ static const struct bin_attribute edid_attr = {
.write = edid_store
};
-static struct device_attribute fb_device_attrs[] = {
+static const struct device_attribute fb_device_attrs[] = {
__ATTR_RO(metrics_bytes_rendered),
__ATTR_RO(metrics_bytes_identical),
__ATTR_RO(metrics_bytes_sent),