Skip to content

Commit

Permalink
video: udlfb: Constify read only data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ladislav Michl authored and Bartlomiej Zolnierkiewicz committed Jan 16, 2018
1 parent c1530ac commit fa738a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit fa738a5

Please sign in to comment.