Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbdFSKhn (ORCPT ); Mon, 19 Jun 2017 06:37:43 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40160 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751897AbdFSKhl (ORCPT ); Mon, 19 Jun 2017 06:37:41 -0400 X-AuditID: cbfec7f2-f797e6d000004438-9f-5947a972485c Subject: Re: [PATCH] drm: exynos: constify mixer_match_types and *_mxr_drv_data. To: Arvind Yadav , inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org From: Andrzej Hajda Message-id: <109c96fc-5d91-f88e-55d3-927dfe5cfba1@samsung.com> Date: Mon, 19 Jun 2017 12:37:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-version: 1.0 In-reply-to: <28c361b34389bfc40fbca6250f6ff24f5f7afe97.1497866987.git.arvind.yadav.cs@gmail.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Content-language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02SfSxVcRjH+91z7jnHnZvTJZ7obTf9oVB6WWcxxSxXra3aarQ1bjnDvHYP ilYZy3S95iq6q0VhZRquS9TCWF5SHUbXzHITeYtlxGijXOfa/Pd5nuf7/T37PvtRmMwgtqfC omJZVZQyQk5I8NrWJd5F9co34CBfQjGZXzpEjCGzCGN6538TTK4xB2empstFzPhgN85kD//C GJ6vJJnPyVMkoxs2iJmet08IpoBvEDEFmgnipFRRr/1GKnRl9wnFm4XvYoUxvU2kqC6+q9Bn r/az9GVIMafbeY66LPEIZiPC4lnVAc8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E0ZYpzCANwgIBEisfFIPERQTuM0q8fPeICcRhFuhhlNhxdiY7RMdWRonung52kLlsApoS fzffZAOxeQXsJJ5v2QQWZxFQlWh7tY0VxBYViJDYdf0AK0SNoMSPyfdYQGxOgSSJw5+3sIJs ZhZQl5gyJRckzCwgL7F5zVtmCFtcorn1JssERsFZSLpnIXTMQtIxC0nHAkaWVYwiqaXFuem5 xUZ6xYm5xaV56XrJ+bmbGIExvu3Yzy07GLveBR9iFOBgVOLhrXjuFinEmlhWXJl7iFGCg1lJ hPfqAvdIId6UxMqq1KL8+KLSnNTiQ4ymQK9NZJYSTc4Hpp+8knhDE0NzS0MjYwsLcyMjJXHe qR+uhAsJpCeWpGanphakFsH0MXFwSjUwck6Td7Kw4Hxe0i642Te4LuTc3Pc/zdZzaD3YsvbC 5ornZ83rGRneif5a8uDX0Z/ce5dbhZy/eEw+f51Hogb/qdX2GRe+njxlq3vg59mt02yzy3bH HJ4w58yGq4EftWwnLbjv58Cl91Nha/Z6l45GzZtzddK+p5Y8FRJL0C/nn720Sibv9bG/85RY ijMSDbWYi4oTAfcFZ3YHAwAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170619103737eucas1p25695de7d59ac5122e21f885454c4c665 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170619101327epcas2p27bb709ee46519fade54663884ef74c88 X-RootMTR: 20170619101327epcas2p27bb709ee46519fade54663884ef74c88 References: <28c361b34389bfc40fbca6250f6ff24f5f7afe97.1497866987.git.arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1957 Lines: 60 On 19.06.2017 12:12, Arvind Yadav wrote: > File size before: > text data bss dec hex filename > 9983 1424 0 11407 2c8f drivers/gpu/drm/exynos/exynos_mixer.o > > File size after constify: > text data bss dec hex filename > 11231 176 0 11407 2c8f drivers/gpu/drm/exynos/exynos_mixer.o > > Signed-off-by: Arvind Yadav Reviewed-by: Andrzej Hajda -- Regards Andrzej > --- > drivers/gpu/drm/exynos/exynos_mixer.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c > index 25edb63..778cae2 100644 > --- a/drivers/gpu/drm/exynos/exynos_mixer.c > +++ b/drivers/gpu/drm/exynos/exynos_mixer.c > @@ -1097,28 +1097,28 @@ static int mixer_atomic_check(struct exynos_drm_crtc *crtc, > .atomic_check = mixer_atomic_check, > }; > > -static struct mixer_drv_data exynos5420_mxr_drv_data = { > +static const struct mixer_drv_data exynos5420_mxr_drv_data = { > .version = MXR_VER_128_0_0_184, > .is_vp_enabled = 0, > }; > > -static struct mixer_drv_data exynos5250_mxr_drv_data = { > +static const struct mixer_drv_data exynos5250_mxr_drv_data = { > .version = MXR_VER_16_0_33_0, > .is_vp_enabled = 0, > }; > > -static struct mixer_drv_data exynos4212_mxr_drv_data = { > +static const struct mixer_drv_data exynos4212_mxr_drv_data = { > .version = MXR_VER_0_0_0_16, > .is_vp_enabled = 1, > }; > > -static struct mixer_drv_data exynos4210_mxr_drv_data = { > +static const struct mixer_drv_data exynos4210_mxr_drv_data = { > .version = MXR_VER_0_0_0_16, > .is_vp_enabled = 1, > .has_sclk = 1, > }; > > -static struct of_device_id mixer_match_types[] = { > +static const struct of_device_id mixer_match_types[] = { > { > .compatible = "samsung,exynos4210-mixer", > .data = &exynos4210_mxr_drv_data,