[PATCH] pinctrl: qcom: constify tiles properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <vkoul@xxxxxxxxxx>
---
 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;
 };
 
-- 
2.14.4




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux