From patchwork Mon Nov 16 09:27:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 7623091 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DB3EFBF90C for ; Mon, 16 Nov 2015 09:27:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCB87205E1 for ; Mon, 16 Nov 2015 09:27:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E38A3205DD for ; Mon, 16 Nov 2015 09:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbbKPJ1U (ORCPT ); Mon, 16 Nov 2015 04:27:20 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36547 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbbKPJ1T (ORCPT ); Mon, 16 Nov 2015 04:27:19 -0500 Received: by pacdm15 with SMTP id dm15so169696663pac.3; Mon, 16 Nov 2015 01:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=0d+qJN2kqAMjbKbHNVoVzvYzpHYQ+rpXIMAFGMvRBYc=; b=g+SbSuImlFuwo7Htwa/wah1EQE3vtrtpGLS0Vdj8yWniO6IGuvTcHcjKdOZSZXlW/v nDsQK5C9ocWSNYwJ5sTOPe21tFG3eB+e1XLFda7L88d9zZSKtf6mtfURl4qKS3fV4dT7 Oo91QlFV+iG5iE/bllS8B2v+VySph/e05sFIWNpY8RbiSCIQFouxUT5F+KzVNKjbLtZq Cqi0CGAhFewgnKaVX+fhdWH3ljAP2UhHNwCqy5yLq9G7147B1Y0sKl5j0piFxqQwwp/+ 1VSMnrirqJKvFBUZrZycUNQXEUMnRsG4jwT6rrXMbtqS1xyvknaesciu50zL0VtXhtWn 5E0Q== X-Received: by 10.66.117.199 with SMTP id kg7mr37318137pab.105.1447666039434; Mon, 16 Nov 2015 01:27:19 -0800 (PST) Received: from localhost (port-56184.pppoe.wtnet.de. [46.59.220.45]) by smtp.gmail.com with ESMTPSA id pa4sm35198978pbc.0.2015.11.16.01.27.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 01:27:18 -0800 (PST) From: Thierry Reding To: Ulf Hansson Cc: Stephen Warren , Alexandre Courbot , linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 1/2] mmc: tegra: Constify SoC data Date: Mon, 16 Nov 2015 10:27:14 +0100 Message-Id: <1447666035-10044-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The data in the SoC description structures is static and can therefore reside in read-only memory. Signed-off-by: Thierry Reding --- drivers/mmc/host/sdhci-tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index ad28b49f0203..8d49d9af6f54 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -184,7 +184,7 @@ static const struct sdhci_pltfm_data sdhci_tegra20_pdata = { .ops = &tegra_sdhci_ops, }; -static struct sdhci_tegra_soc_data soc_data_tegra20 = { +static const struct sdhci_tegra_soc_data soc_data_tegra20 = { .pdata = &sdhci_tegra20_pdata, .nvquirks = NVQUIRK_FORCE_SDHCI_SPEC_200 | NVQUIRK_ENABLE_BLOCK_GAP_DET, @@ -200,7 +200,7 @@ static const struct sdhci_pltfm_data sdhci_tegra30_pdata = { .ops = &tegra_sdhci_ops, }; -static struct sdhci_tegra_soc_data soc_data_tegra30 = { +static const struct sdhci_tegra_soc_data soc_data_tegra30 = { .pdata = &sdhci_tegra30_pdata, .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300 | NVQUIRK_DISABLE_SDR50 | @@ -229,7 +229,7 @@ static const struct sdhci_pltfm_data sdhci_tegra114_pdata = { .ops = &tegra114_sdhci_ops, }; -static struct sdhci_tegra_soc_data soc_data_tegra114 = { +static const struct sdhci_tegra_soc_data soc_data_tegra114 = { .pdata = &sdhci_tegra114_pdata, .nvquirks = NVQUIRK_DISABLE_SDR50 | NVQUIRK_DISABLE_DDR50 |