diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-01-16 10:35:20 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-01-16 10:35:20 -0500 |
commit | fa738a5c4b2a6b06f9c3755e9fc995d96833ade1 (patch) | |
tree | ac95534ab55b6fe8c4e45671e913467932c3ef68 | |
parent | c1530ac5a3ce93a1f02adabc4508b5fbf862dfe2 (diff) |
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>
-rw-r--r-- | drivers/video/fbdev/udlfb.c | 4 |
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 @@ | |||
32 | #include <video/udlfb.h> | 32 | #include <video/udlfb.h> |
33 | #include "edid.h" | 33 | #include "edid.h" |
34 | 34 | ||
35 | static struct fb_fix_screeninfo dlfb_fix = { | 35 | static const struct fb_fix_screeninfo dlfb_fix = { |
36 | .id = "udlfb", | 36 | .id = "udlfb", |
37 | .type = FB_TYPE_PACKED_PIXELS, | 37 | .type = FB_TYPE_PACKED_PIXELS, |
38 | .visual = FB_VISUAL_TRUECOLOR, | 38 | .visual = FB_VISUAL_TRUECOLOR, |
@@ -1455,7 +1455,7 @@ static const struct bin_attribute edid_attr = { | |||
1455 | .write = edid_store | 1455 | .write = edid_store |
1456 | }; | 1456 | }; |
1457 | 1457 | ||
1458 | static struct device_attribute fb_device_attrs[] = { | 1458 | static const struct device_attribute fb_device_attrs[] = { |
1459 | __ATTR_RO(metrics_bytes_rendered), | 1459 | __ATTR_RO(metrics_bytes_rendered), |
1460 | __ATTR_RO(metrics_bytes_identical), | 1460 | __ATTR_RO(metrics_bytes_identical), |
1461 | __ATTR_RO(metrics_bytes_sent), | 1461 | __ATTR_RO(metrics_bytes_sent), |