Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757056Ab3CSDhe (ORCPT ); Mon, 18 Mar 2013 23:37:34 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:33684 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755564Ab3CSDhc (ORCPT ); Mon, 18 Mar 2013 23:37:32 -0400 X-AuditID: cbfee690-b7f656d0000007e3-86-5147dd7b393b From: Jingoo Han To: "'Sachin Kamat'" Cc: "'MyungJoo Ham'" , "'Chanwoo Choi'" , linux-kernel@vger.kernel.org, "'Jingoo Han'" References: <000001ce2445$e1927be0$a4b773a0$%han@samsung.com> <000101ce2445$f61b7120$e2525360$%han@samsung.com> In-reply-to: Subject: Re: [PATCH 2/2] extcon: max8997: add missing const Date: Tue, 19 Mar 2013 12:37:30 +0900 Message-id: <000001ce2453$15eafbd0$41c0f370$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4kUoW9lTeponVNQAy8Ti22ZQu2PgAAFNGg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsVy+t8zI93qu+6BBh/Xcllc//Kc1eLywktA YtccNovbjSvYLE7+6WV0YPW4c20Pm0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlzJ96ia3g DXfF418bmBoY93B2MXJySAiYSFyb38YOYYtJXLi3ng3EFhJYxijx80ssTM3N6TcYuxi5gOLT GSWOH+xjhnB+MUq8eb0FrJtNQE3iy5fDYLaIgI7Eil1rmUCKmAVmM0q837iNDaJjB6PEjZ9X wao4BYIlJq7ZzgxiCwtYS5x8eIsVxGYRUJX43rwBzOYVsJW4vmMNlC0o8WPyPRYQm1lAS2L9 zuNMELa8xOY1b4HmcADdqi7x6K8uxBFGEsv63rBClIhI7HvxjhHinVPsEvOmpEGsEpD4NvkQ C0S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VOlBIID2xJDU7NbUgtQhmCxMHp1QDo1yXcLB3U1fWwojf 569Kr3p6+4Vr5Z4988O8wz/eC5wq/v3n608lQUUalhKpKef/MsYJvXAT1ZE1nrBNrfyt433l ePbO7TNOHLn866lIl6Lgsuxvp9Jc+aP+M9zhZuGzkMme3uWi3pvSnaa5PTf1et3ly6LVzPcf /JOfc8pFeo5IykGHiWFvlViKMxINtZiLihMBRQ3QT0ADAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1714 Lines: 56 > -----Original Message----- > From: Sachin Kamat [mailto:sachin.kamat@linaro.org] > Sent: Tuesday, March 19, 2013 12:33 PM > To: Jingoo Han > Cc: MyungJoo Ham; Chanwoo Choi; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/2] extcon: max8997: add missing const > > On 19 March 2013 07:33, Jingoo Han wrote: > > Fixed the checkpatch warning as below: > > > > WARNING: static const char * array should probably be static const char * const > > #163: FILE: drivers/extcon/extcon-max8997.c:163: > > +static const char *max8997_extcon_cable[] = { > > > > Signed-off-by: Jingoo Han > > --- > > drivers/extcon/extcon-max8997.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c > > index 20772ad..6e8724f 100644 > > --- a/drivers/extcon/extcon-max8997.c > > +++ b/drivers/extcon/extcon-max8997.c > > @@ -160,7 +160,7 @@ enum { > > _EXTCON_CABLE_NUM, > > }; > > > > -static const char *max8997_extcon_cable[] = { > > +static const char const *max8997_extcon_cable[] = { > > Shouldn't this be "static const char * const max8997_extcon_cable[]" > as suggested by checkpatch (as mentioned in your commit log)? Hi Sachin Kamat, Although the checkpatch warning is already fixed, I will send v2 patch for clarity. Thank you for your comment. Best regards, Jingoo Han > > > -- > With warm regards, > Sachin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/