Message ID | 1426073078-25029-1-git-send-email-linus.walleij@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDE6RCFOWIARBAWMQCUAKGQEXLOMXKY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1D6FB214BF for <linaro@patches.linaro.org>; Wed, 11 Mar 2015 11:24:51 +0000 (UTC) Received: by wghk14 with SMTP id k14sf6001553wgh.3 for <linaro@patches.linaro.org>; Wed, 11 Mar 2015 04:24:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=z757o8Vb0aowR71NpknehNk5YjrFpGjfaR6eK4Yam7w=; b=k7OLexcDsxCJWHAYbPpSQ1FIfeJjI970zpDjJDEVE0hwTXiY3z0eNHPgJEc20QseU8 5sTXT2SyZ/cMz1U45TRbq4KO582EEaD47HFDEqJW+DwlWYpRnDA6QAJPVY8KlySa2rej /LEHQ8vrbwk4UvbVuCEjTiiOKH1ubSurOrHmnnMBdw8viSaKfoe8Xki5sw9MQ6FWzEKe LVe9T8d3BOlRYDfP/q/Biy5945D9PrE5f2n4VXs0k7no93YpUXk+n6dx/zL5rk8/XlZI nD17OZGFhGHqu3czdZy51qTWljqHC3QW+Bvtv0JXpfASrFNWIjmA/BubofZ9EcVAt+GX XVng== X-Gm-Message-State: ALoCoQlQHAF9wAmq0AvMOK+jQdPV4OnnPeoAeIyTpU1ZycLg10SGIPCjvwZCP1Sp/lYGIUbbA0Go X-Received: by 10.112.219.102 with SMTP id pn6mr5293666lbc.12.1426073090410; Wed, 11 Mar 2015 04:24:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.36 with SMTP id b4ls137148lae.46.gmail; Wed, 11 Mar 2015 04:24:49 -0700 (PDT) X-Received: by 10.152.170.199 with SMTP id ao7mr33661569lac.27.1426073089968; Wed, 11 Mar 2015 04:24:49 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id k8si2159517laa.90.2015.03.11.04.24.49 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 04:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbiz12 with SMTP id z12so8030878lbi.12 for <patchwork-forward@linaro.org>; Wed, 11 Mar 2015 04:24:49 -0700 (PDT) X-Received: by 10.112.64.193 with SMTP id q1mr34411736lbs.88.1426073089890; Wed, 11 Mar 2015 04:24:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2709865lbj; Wed, 11 Mar 2015 04:24:48 -0700 (PDT) X-Received: by 10.66.227.169 with SMTP id sb9mr38776116pac.11.1426073087800; Wed, 11 Mar 2015 04:24:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hd5si6329675pac.226.2015.03.11.04.24.46; Wed, 11 Mar 2015 04:24:47 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbbCKLYq (ORCPT <rfc822;linus.walleij@linaro.org> + 1 other); Wed, 11 Mar 2015 07:24:46 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:43692 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752788AbbCKLYp (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Wed, 11 Mar 2015 07:24:45 -0400 Received: by lbvp9 with SMTP id p9so8043171lbv.10 for <linux-gpio@vger.kernel.org>; Wed, 11 Mar 2015 04:24:44 -0700 (PDT) X-Received: by 10.112.181.231 with SMTP id dz7mr33158483lbc.47.1426073084047; Wed, 11 Mar 2015 04:24:44 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id xu8sm663319lab.21.2015.03.11.04.24.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 04:24:42 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot <acourbot@nvidia.com>, Linus Walleij <linus.walleij@linaro.org>, Olliver Schinagl <oliver@schinagl.nl> Subject: [PATCH] gpio: fix constconst in devres Date: Wed, 11 Mar 2015 12:24:38 +0100 Message-Id: <1426073078-25029-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c index ec24da2418b3..0bd060bf7151 100644 --- a/drivers/gpio/devres.c +++ b/drivers/gpio/devres.c @@ -135,7 +135,7 @@ struct gpio_desc *devm_get_gpiod_from_child(struct device *dev, const char *con_id, struct fwnode_handle *child) { - static const char const *suffixes[] = { "gpios", "gpio" }; + static const char *suffixes[] = { "gpios", "gpio" }; char prop_name[32]; /* 32 is max size of property name */ struct gpio_desc **dr; struct gpio_desc *desc;
Commit 1feb57a245a4910b03202a814ffc51a900bd4aca "gpio: add parameter to allow the use named gpios" includes a double-conted array. Fix this. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Olliver Schinagl <oliver@schinagl.nl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/gpio/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)