From patchwork Tue Dec 18 23:26:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10736567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4299417E1 for ; Tue, 18 Dec 2018 23:27:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348002A085 for ; Tue, 18 Dec 2018 23:27:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 287572AEB0; Tue, 18 Dec 2018 23:27:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C85F72A085 for ; Tue, 18 Dec 2018 23:27:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbeLRX1N (ORCPT ); Tue, 18 Dec 2018 18:27:13 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33870 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727998AbeLRX1N (ORCPT ); Tue, 18 Dec 2018 18:27:13 -0500 Received: by mail-pl1-f194.google.com with SMTP id w4so8543503plz.1; Tue, 18 Dec 2018 15:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zV85iRBEXyKYhhvHhomoMCUhpP+aUy4hQv59ca9b8c=; b=M9r7wCYEM4gZEAQpfXNMw9V5Y9/mEb7mFpQHN4xBfQGjuyV17mmPanby2QSae27W/L jPTQlUuguzPMdr73tBVIjzmtkU1ZB1xDDj4pi100N2cppWGX3YJyHTui8Pjruv69jL+I 5O+9wxwgj2BoXnoGoaK+tUAWRcpfqto3zIoh8DRvJFt9CEl1TLlv54/c8S7WPUpAYHm8 RBIDUD36jTm2p0TufP36fAR39dZ67+ZBoQamMywMMybBVsEVKzW+HwNCsCS5aoFxUK94 mbLzBVmkR4ddSFn0SrNRwskMlAuA9F9J6rieTXxgt8x8KrxG+4s72m95k2PJYgkZ0N/q vrTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zV85iRBEXyKYhhvHhomoMCUhpP+aUy4hQv59ca9b8c=; b=Bbo+ba2KWyOgMbUhHvNU/NEpbVgLjskK86y5UBN/ryrMod2t30irSohU9wZ1KYOTpE E+b4g2iwSkGAcrPd20ieeNekhJCEo0qCpUZdf5gci+4Di+OcAI+glWggGRcrv3yP0dpn EqkK3vZEOaY8EE4XBHv2bqeWU5ri6Mx7+iyaV3qGvqgBikg7FloFo6QE4NSWXOMvtI48 bECMvzXkY/3ujI3vsH199Ch/Zgt304GXfWqx2nU3zZl5aTtg/Apt0ORllIEknA/VBBwC ytZB+FplsWwX7WiOfBfWcZuvRIvg4TTa4YU+5ZCuC62m6afxhvAtu/bnyZy5TCZbOY3K EKcA== X-Gm-Message-State: AA+aEWab3/tiwYJHNzivaCi0sbnR7SUs7m2555RoGBL+gO4cqxKh2Qkz t1M1/I2ylfYCPXrxeWQyq1ohrb0U X-Google-Smtp-Source: AFSGD/UEook8JNKoReqhyOzf2OYxvf83hGPi2sLmSlgwLQSsZqm9JditM7VOqa/YGrlV+VXDxypCfw== X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr18630097plo.183.1545175631407; Tue, 18 Dec 2018 15:27:11 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id x19sm28094359pfk.14.2018.12.18.15.27.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 15:27:10 -0800 (PST) From: Andrey Smirnov To: linux-mmc@vger.kernel.org Cc: Andrey Smirnov , Adrian Hunter , Ulf Hansson , linux-kernel@vger.kernel.org Subject: [PATCH] mmc: sdhci-esdhc-imx: Constify driver data Date: Tue, 18 Dec 2018 15:26:52 -0800 Message-Id: <20181218232652.12700-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Variant specific driver data doesn't change at run-time, so mark it as const to reflect that. Signed-off-by: Andrey Smirnov Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-esdhc-imx.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index f44e49014a44..39ace4f1036b 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -148,38 +148,38 @@ struct esdhc_soc_data { u32 flags; }; -static struct esdhc_soc_data esdhc_imx25_data = { +static const struct esdhc_soc_data esdhc_imx25_data = { .flags = ESDHC_FLAG_ERR004536, }; -static struct esdhc_soc_data esdhc_imx35_data = { +static const struct esdhc_soc_data esdhc_imx35_data = { .flags = ESDHC_FLAG_ERR004536, }; -static struct esdhc_soc_data esdhc_imx51_data = { +static const struct esdhc_soc_data esdhc_imx51_data = { .flags = 0, }; -static struct esdhc_soc_data esdhc_imx53_data = { +static const struct esdhc_soc_data esdhc_imx53_data = { .flags = ESDHC_FLAG_MULTIBLK_NO_INT, }; -static struct esdhc_soc_data usdhc_imx6q_data = { +static const struct esdhc_soc_data usdhc_imx6q_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_MAN_TUNING, }; -static struct esdhc_soc_data usdhc_imx6sl_data = { +static const struct esdhc_soc_data usdhc_imx6sl_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_ERR004536 | ESDHC_FLAG_HS200, }; -static struct esdhc_soc_data usdhc_imx6sx_data = { +static const struct esdhc_soc_data usdhc_imx6sx_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200, }; -static struct esdhc_soc_data usdhc_imx7d_data = { +static const struct esdhc_soc_data usdhc_imx7d_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 | ESDHC_FLAG_HS400,