From patchwork Thu Oct 11 12:33:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 148623 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2066999lji; Thu, 11 Oct 2018 05:34:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Mhqe29j+NE4aS0L5oP0GRscCnXaClnDjFU7Qr0DGr3jZizcLpnq1Ih9IUKQ/zd8BilEF6 X-Received: by 2002:a62:221c:: with SMTP id i28-v6mr1416198pfi.196.1539261253602; Thu, 11 Oct 2018 05:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539261253; cv=none; d=google.com; s=arc-20160816; b=YEbBgtwLqBK5iios1YuDz9cIet87Ju9mBzFNHxpfGZymEOwXJ6laMcEXoaEhsbEJ4r eQbQR+UfvbPEYEGsEGoSTLmzuTjdR5gYLkL1D/cq/kAFy14C66s8yjSW7/bY8ivfwNru C+ser0iKdxWqsGZWSl6g4etGv4gDFrUu6UQZ3nhfSCc7fsvN0wVoWczHSs7Hv3/8VNkB YbWHo+Tp3LHybXVIC3IQqz5VzfgAWgpPrW3CxgyDuT45oAGai97Ux4BNi0ggNPx+AUOh +gX8p3EOJfzeUMTwSVK7yv85+HbenKofpj3Uj9sxcHZR+kbyyB2Hda2Se7pdzSIA2Rb5 f0Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=cR1yiJlb3Rj+kgdJZx9YYpt04Zw5qiy4N7MC2HPQD6o=; b=mwwCXPrSXJL/RjH87KeEZeogTAtCksa3iR81iH9xzT1Uble2P+hnMylOgxgwe2+rUZ C+7iL0mDKHwI3P8MSen0ZO21Jk8o3PIAdEaThSA+GTYs9a+ebIVY6ZR40PzrefwpvlOu JTl7p5NPsJZ64rEG4Dpzey1+yRM8ZmjylJMHlVS2JXVgv3JzhRuHTGTs2mQkmkSQ1TvG J1zhC5GCWiLAhBoM1NjRE63VyShRlk7UFy+MBopEIyEJZCy7pWZwqKL9egJkA3gms/LZ pjanUvaDrKew9G1Z2IJ/MBSU0xBfQtiWJoP3axgJ9tD8o4Jaz6/M8M/sJP24ay8O2X6H oTCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UV4eY1hh; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u38-v6si26380629pgn.106.2018.10.11.05.34.13; Thu, 11 Oct 2018 05:34:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UV4eY1hh; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727753AbeJKUBN (ORCPT + 5 others); Thu, 11 Oct 2018 16:01:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:58140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbeJKUBN (ORCPT ); Thu, 11 Oct 2018 16:01:13 -0400 Received: from localhost.localdomain (unknown [122.167.117.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7CFF22077C; Thu, 11 Oct 2018 12:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539261252; bh=dd7D+DfoS+sz8RKT77V792DaM+kuBOvIUuxuZeQ9Amw=; h=From:To:Cc:Subject:Date:From; b=UV4eY1hhdO6pUmOX/b7A86Cs50FwDMsTXIlbv+GxcKnzKecaThQOi3YgSMTxPru0k agm72ZlvA47odJCuXKOoeAd3DUqjSZijJSHPczvJYvqfcZ87rY4Wvm7SUu+DiqwBjr n/2MCdUNG6j+KIYMoRPnIydnlaOKFewpCeu4NnKo= From: Vinod Koul To: Bjorn Andersson , Linus Walleij Cc: Vinod Koul , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH] pinctrl: qcom: constify tiles properly Date: Thu, 11 Oct 2018 18:03:30 +0530 Message-Id: <20181011123330.28329-1-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org compiler warns: drivers/pinctrl/qcom/pinctrl-qcs404.c:1660:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] The tiles are array of strings rightly defined as "const char * const qcs404_tiles" so the member holding should also be defined similarly. So update tiles to "const char * const *" Fixes: 1c1880fb7706 ("pinctrl: qcom: Support dispersed tiles") Signed-off-by: Vinod Koul --- drivers/pinctrl/qcom/pinctrl-msm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.4 diff --git a/drivers/pinctrl/qcom/pinctrl-msm.h b/drivers/pinctrl/qcom/pinctrl-msm.h index 0ad4bc55e2e1..44ebf037ed4a 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.h +++ b/drivers/pinctrl/qcom/pinctrl-msm.h @@ -119,7 +119,7 @@ struct msm_pinctrl_soc_data { unsigned ngroups; unsigned ngpios; bool pull_no_keeper; - const char **tiles; + const char * const *tiles; unsigned int ntiles; };