From patchwork Tue Jul 23 20:27:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1135906 X-Patchwork-Delegate: simon.k.r.goldschmidt@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CafV+MiB"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tVSX0zjMz9s4Y for ; Wed, 24 Jul 2019 06:29:16 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C0251C21C51; Tue, 23 Jul 2019 20:28:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C42B9C21D74; Tue, 23 Jul 2019 20:28:10 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 42B1CC21C38; Tue, 23 Jul 2019 20:28:06 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id F291BC21C27 for ; Tue, 23 Jul 2019 20:28:05 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id c2so41311229wrm.8 for ; Tue, 23 Jul 2019 13:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3498JFy3+OalBiSYKTr/Nt3ZaawlSCjmWxqw1PZP/kg=; b=CafV+MiBoJvZjY7YvClxVxD/AUzjU4Cy1MJYLn3zOZ7ln+Gldi4Sl+LpLWMZXNLSe5 SakuFYBmCZY3sd/LECRybGHeBIacV+fUqERECUsUepSwsdZjeLac4RGK1cLonjDGWla/ piOZXPGUwaVFoKcOA/0ZmJYnPEB6QYm68XeCia/JFzozlQ6+UxZNWTVJOMGCr1bZ7mEf nLGtR0mrQg1uvJIjqu1n8XKwx53qU9fU10OE3IFiR1atOzlexWkAen/AndG1yuyHE0tY ymOrPB8SoTfqD/IgN4x4GzkDvpzMn/Dw9cRSeAhf7PMdkkUjIl2g4rVceo45Zeml9Yyw GzQw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3498JFy3+OalBiSYKTr/Nt3ZaawlSCjmWxqw1PZP/kg=; b=caXsZ4pIDi1l0dbSRNXj+GL0UmfJekNG7AivdoJrevLankK43FZRZDKv3+VPeiF54E 3WeOH5O41NdI98kFQ25jQfGMH27UIVAMA6CNbffv3Ry8dEX9XHCr8pSXKnV4D0ONGbCX f2I5gST6Ha9VojQK7KqN+Gn1VMfT2sYxt/7GgSdxLlmG7YPi8A/GGNjTTF2jz09qjZ4O LqsdsmfpgwYOaChjy1sPUpHM8Si2HToDF2O6nWgfdyIC7ruzBPKFsLNS1Mnlvi70DZsl oqJ4ncvaBlZXJBqPqZ5O3776/W3sMP1ZMuW9KZ15IdTw0KDcXRHyyel925N0SmjX/DvD zl0A== X-Gm-Message-State: APjAAAVa0H+Pw7bi/680a843XGdusmJ/P4lOgx0lhSaT3lJPFuB5P7wq jaid0IormY1Pe0qCKM6iUgA= X-Google-Smtp-Source: APXvYqxsXv2CDEJXvyYBUQZtYZiiEfsTYeUEKtKu7VAbhVfTTGahQD830QIzQdIMlpJM69Zkli0r2w== X-Received: by 2002:a5d:5308:: with SMTP id e8mr43928387wrv.219.1563913685717; Tue, 23 Jul 2019 13:28:05 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:e1af:5c69:a16b:945c]) by smtp.gmail.com with ESMTPSA id l25sm34057284wme.13.2019.07.23.13.28.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 13:28:05 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Tue, 23 Jul 2019 22:27:52 +0200 Message-Id: <20190723202758.21295-2-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190723202758.21295-1-simon.k.r.goldschmidt@gmail.com> References: <20190723202758.21295-1-simon.k.r.goldschmidt@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/6] ddr: socfpga: gen5: constify altera_gen5_sdram_ops X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Make the function pointer struct const, as it does not need to be writable. This doesn't really change anything other than moving this variable to a different section. No functional change. Signed-off-by: Simon Goldschmidt --- drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c index fcd89b619d..8c8ea19eb9 100644 --- a/drivers/ddr/altera/sdram_gen5.c +++ b/drivers/ddr/altera/sdram_gen5.c @@ -626,7 +626,7 @@ static int altera_gen5_sdram_get_info(struct udevice *dev, return 0; } -static struct ram_ops altera_gen5_sdram_ops = { +static const struct ram_ops altera_gen5_sdram_ops = { .get_info = altera_gen5_sdram_get_info, };