video: udlfb: Constify read only data
authorLadislav Michl <ladis@linux-mips.org>
Tue, 16 Jan 2018 15:35:20 +0000 (16:35 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 16 Jan 2018 15:35:20 +0000 (16:35 +0100)
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>
drivers/video/fbdev/udlfb.c

index 47e31668f31664f2e2f8fa91a1674d97e71b0875..f0118c10b4abed9dbadcb64df61ac89173c084e5 100644 (file)
@@ -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),