From patchwork Wed Mar 13 18:26:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2264521 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DB667DF215 for ; Wed, 13 Mar 2013 18:24:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933213Ab3CMSYg (ORCPT ); Wed, 13 Mar 2013 14:24:36 -0400 Received: from smtp-out-064.synserver.de ([212.40.185.64]:1053 "EHLO smtp-out-064.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933006Ab3CMSYg (ORCPT ); Wed, 13 Mar 2013 14:24:36 -0400 Received: (qmail 27331 invoked by uid 0); 13 Mar 2013 18:24:31 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 27152 Received: from p4fe6396e.dip.t-dialin.net (HELO lars-adi-laptop.analog.com) [79.230.57.110] by 217.119.54.73 with SMTP; 13 Mar 2013 18:24:27 -0000 From: Lars-Peter Clausen 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 Subject: [PATCH v3 2/3] mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct Date: Wed, 13 Mar 2013 19:26:04 +0100 Message-Id: <1363199165-16211-2-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1363199165-16211-1-git-send-email-lars@metafoo.de> References: <1363199165-16211-1-git-send-email-lars@metafoo.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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 Acked-by: Shawn Guo --- 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 a3bfc1e..1210ed1 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; };