Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750941AbdGGENO (ORCPT ); Fri, 7 Jul 2017 00:13:14 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10616 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768AbdGGENN (ORCPT ); Fri, 7 Jul 2017 00:13:13 -0400 X-AuditID: b6c32a2d-f79866d0000012d5-fe-595f0a563313 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Message-id: <595F0A55.9070801@samsung.com> Date: Fri, 07 Jul 2017 13:13:09 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Arvind Yadav , myungjoo.ham@samsung.com Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] extcon: int3496: constify acpi_device_id. In-reply-to: X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRTmt+uuV2l1m48OQjkviClt7akzUpNEJopJQWivddUfKnOPdjfJ /ogZYrI0qkHIMDPBSAkUtdQiNSuMopfP6GFFK3shhpViGe3uGvXfd77z+M75OBQhnRdHUWUW B7Zb2HKGDA26eis+Xr471FigfODR6SfrLxD6sWuNpP551SVyG2Ho974MNpzsaUeG+a4NecQe vLUUs8XYLsOWImtxmaUkhcneZdxu1CUqVXJVsj6JkVlYM05hMnLy5Jll5X4hRlbBljv9VB7L cczm1K12q9OBZaVWzpHC7FWp1AqVMkmhVqsVWs3+LWqdv+QgLn3qirW1hR6eeTFPutBysBuF UEBr4WNNq1jAkfB4uoN0o1BKSrcimPD5xEIwj+ClZ078t6P3ZoNISPQhqHvmFvEJCb0WFj3T QW5EUQQdDbdHTTxN0PFw5XpHQE1KTyMYum8RyhOg91MLyeMgOhaaF74GMOnnBz88DeA1dAxM LL5FPI6g86H//I/AnHA6E07MThHCfBksTXcFdgujU2HEt4D4FULoQ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JucD4zavJN7QxNLI xMDMzNDIwNhMSZx3QuCXCCGB9MSS1OzU1ILUIpg+Jg5OqQbG0kCeX23KFufqVmz2XWm+UvmL vZIKq6Sp9N/CbUw8+3ea2NprOIqcf6FkYlwac/Sg/lazJ9O0I+X6o39+zhE4Iv3B6on23WPS 69xjz0y+5GkWVLX1R3i4Q9GJwzcmtetckX00SWDasluPn0QUzLXdvfTJjC9PH1pv4uGbeNCg Qdrla67ixCn9SizFGYmGWsxFxYkAWuomz6MCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170707041309epcas5p141dd6ec2bb15a7901247cb4db2d53d33 X-Msg-Generator: CA X-Sender-IP: 182.195.42.80 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170706165618epcas5p1b527daa8f6674282d0bf72fc9bad9461 X-RootMTR: 20170706165618epcas5p1b527daa8f6674282d0bf72fc9bad9461 References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1282 Lines: 39 On 2017년 07월 07일 01:55, Arvind Yadav wrote: > acpi_device_id are not supposed to change at runtime. All functions > working with acpi_device_id provided by work with > const acpi_device_id. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 1733 352 0 2085 825 drivers/extcon/extcon-intel-int3496.o > > File size After adding 'const': > text data bss dec hex filename > 1797 272 0 2069 815 drivers/extcon/extcon-intel-int3496.o > > Signed-off-by: Arvind Yadav > --- > drivers/extcon/extcon-intel-int3496.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/extcon/extcon-intel-int3496.c b/drivers/extcon/extcon-intel-int3496.c > index 9d17984..49bf9c6 100644 > --- a/drivers/extcon/extcon-intel-int3496.c > +++ b/drivers/extcon/extcon-intel-int3496.c > @@ -174,7 +174,7 @@ static int int3496_remove(struct platform_device *pdev) > return 0; > } > > -static struct acpi_device_id int3496_acpi_match[] = { > +static const struct acpi_device_id int3496_acpi_match[] = { > { "INT3496" }, > { } > }; > Applied it. -- Best Regards, Chanwoo Choi Samsung Electronics