From: Lars-Peter Clausen Subject: [PATCH 2/3] mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct Date: Thu, 14 Feb 2013 19:06:20 +0100 Message-ID: <1360865181-11785-2-git-send-email-lars@metafoo.de> References: <1360865181-11785-1-git-send-email-lars@metafoo.de> Return-path: Received: from smtp-out-212.synserver.de ([212.40.185.212]:1036 "EHLO smtp-out-212.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758347Ab3BNSFf (ORCPT ); Thu, 14 Feb 2013 13:05:35 -0500 In-Reply-To: <1360865181-11785-1-git-send-email-lars@metafoo.de> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Chris Ball Cc: Anton Vorontsov , Viresh Kumar , Stephen Warren , Mike Rapoport , Shawn Guo , Albert Herranz , Kevin Liu , linux-mmc@vger.kernel.org, Lars-Peter Clausen All users of the sdhci_ops struct in the sdhci core already treat it as const. The sdhci-pltfm code itself never actually looks at the ops field of the sdhci_pltfm_data struct and merely passes it on to the sdhci core, so make we can make it const in the sdhci_pltfm_data struct as well. This allows us to declare sdhci_ops structs as const in drivers using the sdhci-pltfm helper code. Signed-off-by: Lars-Peter Clausen --- drivers/mmc/host/sdhci-pltfm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index 8a4318e..3a34fe1 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -16,7 +16,7 @@ #include "sdhci.h" struct sdhci_pltfm_data { - struct sdhci_ops *ops; + const struct sdhci_ops *ops; unsigned int quirks; }; -- 1.8.0