Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753953AbdFSKLg (ORCPT ); Mon, 19 Jun 2017 06:11:36 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:56029 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753368AbdFSKLd (ORCPT ); Mon, 19 Jun 2017 06:11:33 -0400 X-AuditID: cbfec7f2-f797e6d000004438-d3-5947a34d0ce1 Subject: Re: [PATCH] drm: exynos: hdmi: make of_device_ids const. To: Arvind Yadav , inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, 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: <84a58fd2-989d-a982-66e9-c97e9d61c2f4@samsung.com> Date: Mon, 19 Jun 2017 12:11:23 +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: <6012220ff3c7dad339686f411ff372e7897e60c4.1497863911.git.arvind.yadav.cs@gmail.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Content-language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRTut3t3791wcZuaB9OSQVCBVtjjliIJUQsJgghcBHnVi0pObVfF ClJ6WM6ltpXKLDAzY2IU27QUeqk5TWy+MjTclF7TJi519qLIeRf43/ed853z/b7Dj8Lkg+JQ KiMrl9NksZkKQoq3dP20Rx6+e1C1zdQczFx70yNiRq7dwZhh7yzB6J0VOOOeaRIxLscAztjt j0im74KbZMwfRsTMUNstgqm2PxMx1YYpYl+AstU4TirNjSWE8vHihFjpLLWJlJb6QqW1fKle Zm1Eynnz+iPUcWlsKpeZkc9ptsYlSdNNJSUoxyMtuPKglyhC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4vrsW2wgtojAWUaJ5/1eIEXMAj2MEjvOzmSH6NjKKDHtagsjSBWbgKbE3803wTp4 Bewk9r5YDzSWg4NFQFVi+sVCkLCoQITErusHWCFKBCV+TL4HtoxTIEni76TVbCDlzALqElOm 5IKEmQXkJTavecsMYYtLNLfeZJnAKDgLSfcshI5ZSDpmIelYwMiyilEktbQ4Nz232EivODG3 uDQvXS85P3cTIzCytx37uWUHY9e74EOMAhyMSjy8Fc/dIoVYE8uKK3MPMUpwMCuJ8F5d4B4p xJuSWFmVWpQfX1Sak1p8iNEU6LOJzFKiyfnApJNXEm9oYmhuaWhkbGFhbmSkJM479cOVcCGB 9MSS1OzU1ILUIpg+Jg5OqQbGdRbdqyNTpsZ9WHog8V/ln87X4uk/fu+uPfO3pH3FrWcnJzH+ KHFf5if4OVnNzDju/U0X1mXH5+zY+Gobw+a7UicZLlxcW+Cqs/fj/a8bgk/7lD+70LrYOYb3 ckdUhPzJVW85E+sXXX7dLtv833f1nmPT9f9U+pkkd0+QZneXP+aUmOZ86F5+sRJLcUaioRZz UXEiANyD87ICAwAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170619101124eucas1p25f71a0fcbd9d9e2e6325d429b7e63b84 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: 20170619092447epcas2p39a32ae59d05f1bd14cd43b8bcd6f2463 X-RootMTR: 20170619092447epcas2p39a32ae59d05f1bd14cd43b8bcd6f2463 References: <6012220ff3c7dad339686f411ff372e7897e60c4.1497863911.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: 1351 Lines: 39 On 19.06.2017 11:24, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 12294 1192 0 13486 34ae drivers/gpu/drm/exynos/exynos_hdmi.o > > File size after constify hdmi_match_types. > text data bss dec hex filename > 13318 176 0 13494 34b6 drivers/gpu/drm/exynos/exynos_hdmi.o > > Signed-off-by: Arvind Yadav Reviewed-by: Andrzej Hajda -- Regards Andrzej > --- > drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c > index 1ff6ab6..624c48d 100644 > --- a/drivers/gpu/drm/exynos/exynos_hdmi.c > +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c > @@ -1683,7 +1683,7 @@ static int hdmi_resources_init(struct hdmi_context *hdata) > return hdmi_bridge_init(hdata); > } > > -static struct of_device_id hdmi_match_types[] = { > +static const struct of_device_id hdmi_match_types[] = { > { > .compatible = "samsung,exynos4210-hdmi", > .data = &exynos4210_hdmi_driver_data,