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: 982456 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="UV4eY1hh"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42W9Py1hcMz9s3T for ; Thu, 11 Oct 2018 23:34:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727753AbeJKUBN (ORCPT ); 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(-) 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; };