From patchwork Wed Jan 7 09:08:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olliver Schinagl X-Patchwork-Id: 425969 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id ED6671400D5 for ; Wed, 7 Jan 2015 20:10:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752407AbbAGJK5 (ORCPT ); Wed, 7 Jan 2015 04:10:57 -0500 Received: from 7of9.schinagl.nl ([88.159.158.68]:42985 "EHLO 7of9.schinagl.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752238AbbAGJJL (ORCPT ); Wed, 7 Jan 2015 04:09:11 -0500 Received: from um-mba-140.fritz.box (a83-163-237-212.adsl.xs4all.nl [83.163.237.212]) by 7of9.schinagl.nl (Postfix) with ESMTPA id 381594D3A8; Wed, 7 Jan 2015 10:09:08 +0100 (CET) From: Olliver Schinagl To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Richard Purdie Cc: Olliver Schinagl , Robin Gong , "Rafael J. Wysocki" , Aaron Lu , Mika Westerberg , Grant Likely , Wolfram Sang , Alexander Shiyan , Jingoo Han , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v1 1/4] gpio:gpiolib: use static const char const * for a suffixes array Date: Wed, 7 Jan 2015 10:08:39 +0100 Message-Id: <1420621722-7428-2-git-send-email-oliver+list@schinagl.nl> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1420621722-7428-1-git-send-email-oliver+list@schinagl.nl> References: <1420621722-7428-1-git-send-email-oliver+list@schinagl.nl> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Olliver Schinagl Checkpatch complains, and probably with good reason that we should use const char const * for the static constant array that never gets changed. Signed-off-by: Olliver Schinagl --- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 487afe6..9d2a371 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1657,7 +1657,7 @@ static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id, unsigned int idx, enum gpio_lookup_flags *flags) { - static const char *suffixes[] = { "gpios", "gpio" }; + static const char const *suffixes[] = { "gpios", "gpio" }; char prop_name[32]; /* 32 is max size of property name */ enum of_gpio_flags of_flags; struct gpio_desc *desc;