From patchwork Wed Oct 23 20:19:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1182466 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 (no SPF record) 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="k07ajr18"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46z1vG4Kf9z9sP6 for ; Thu, 24 Oct 2019 07:19:54 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 47A8CC21DE8; Wed, 23 Oct 2019 20:19:46 +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, RCVD_IN_MSPIKE_H2, 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 510DEC21D8A; Wed, 23 Oct 2019 20:19:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 76766C21D8A; Wed, 23 Oct 2019 20:19:43 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 22EFEC21C27 for ; Wed, 23 Oct 2019 20:19:43 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id s1so14730924wro.0 for ; Wed, 23 Oct 2019 13:19:43 -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:mime-version :content-transfer-encoding; bh=3498JFy3+OalBiSYKTr/Nt3ZaawlSCjmWxqw1PZP/kg=; b=k07ajr18fxV+NsScJhOYzyyPVbHKrV6OWEPrANsHzChhVGT/l7lFZdYoIy/w3hlUa4 vx5LARAfwuM9exfmjtfI7P6oaAw+NDlqqiu1r6ywZYxX3HvS2DMab3hYxZul1J1WXZ/R EJqGyipwEsFo6tYsRyLb0S2Y2z0e8C4aYMBsfQwnMQcrfhike/igePZkYobDUICQ/fSR 1lxeviuWDvNpttTfbcOFl4DESPBQukjgUWb8cdcSqlp0/jS+jqVkXlPzHXXYjRobkRee 5tL3DvuFM7/0C8dsxCnzR0T/yaTotx1wTtzBkBL91EkvKVqGpF0M+U4UmSvbhaR+jqsl 1LZQ== 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=3498JFy3+OalBiSYKTr/Nt3ZaawlSCjmWxqw1PZP/kg=; b=hbF51gf+vS9MUuzzSwvwYmg3rWHVnHoNstzc3uGbgMhMcQosDVtbfbFh+RqVKuQmjh aa6pNpBFW8Z3UZeWiB3RqggguJ3OP/BvajJ8So/TD1lhjAbU/Jt0kQmp7Q7+/mUJaqv+ /5l3hB5yw82dzk8P84x5/4P+HweoFcJLSjXykCd+v2eTzCS49r+6XxX1OUFHR7tiLWcy sZ1tSdgTyT9K63OExeS3loitCvibihhq3TfQQwNJ3/4HRccc4+QGjFLZUdzB1HtphkuS n/XoiYp8YR6RDnToQ4njtI3xF1T0hnxGeotJsrFZPlqF/1GBGmC/PTia2VJfBEPLCDeJ RgXA== X-Gm-Message-State: APjAAAXbCZ7HDYYkWeTYCsfJ0HULhLv5CZwkR7VfreoD/JyyzktHL1vM U2lJOga94TFEeaOf6pqH3qM= X-Google-Smtp-Source: APXvYqz22BMWfCdoRVq43FrpjzQ8arRAX3OYQeFxHYh5r5OwHa5ck5VKQxTupF27xHurR0qtMTReLw== X-Received: by 2002:adf:e585:: with SMTP id l5mr486975wrm.156.1571861982744; Wed, 23 Oct 2019 13:19:42 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:50e:1b2d:a4c8:d388]) by smtp.gmail.com with ESMTPSA id 65sm21742468wrs.9.2019.10.23.13.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:19:42 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Wed, 23 Oct 2019 22:19:37 +0200 Message-Id: <20191023201937.24669-1-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] 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 Reviewed-by: Ley Foon Tan --- 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, };