Skip to content

Commit e8de68b

Browse files
krzkdaeinki
authored andcommitted
drm/exynos: exynos7_drm_decon: Consstify struct decon_data
static 'struct decon_data' is only read, so it can be const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 30b66dd commit e8de68b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos7_drm_decon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ struct decon_data {
4343
unsigned int wincon_burstlen_shift;
4444
};
4545

46-
static struct decon_data exynos7_decon_data = {
46+
static const struct decon_data exynos7_decon_data = {
4747
.vidw_buf_start_base = 0x80,
4848
.shadowcon_win_protect_shift = 10,
4949
.wincon_burstlen_shift = 11,
5050
};
5151

52-
static struct decon_data exynos7870_decon_data = {
52+
static const struct decon_data exynos7870_decon_data = {
5353
.vidw_buf_start_base = 0x880,
5454
.shadowcon_win_protect_shift = 8,
5555
.wincon_burstlen_shift = 10,

0 commit comments

Comments
 (0)