Message ID | 20191015201032.20156-2-simon.k.r.goldschmidt@gmail.com |
---|---|
State | Deferred, archived |
Delegated to: | Simon Goldschmidt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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="D6hVULrl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46t64t61nvz9sPZ for <incoming@patchwork.ozlabs.org>; Wed, 16 Oct 2019 07:11:10 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4EB7EC21C50; Tue, 15 Oct 2019 20:10:55 +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 C7DDBC21C29; Tue, 15 Oct 2019 20:10:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0551FC21C29; Tue, 15 Oct 2019 20:10:40 +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 B5B31C21BE5 for <u-boot@lists.denx.de>; Tue, 15 Oct 2019 20:10:40 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id o18so25308569wrv.13 for <u-boot@lists.denx.de>; Tue, 15 Oct 2019 13:10:40 -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=8hr9n2512O9oc3i4dLmqoIkgO3MenCmq1W8DfYfMzNY=; b=D6hVULrl2ALvmUp4sTyuuHk9mPXmKKvHhQ9plidjiTTQaMru+nDDx4f3nC59aRWr48 ctGclr3U62wBL2NTZ8lSy4UK6Fj+vY6MFbexdbEy1jl1QcPGHaBGRmfMTT8YKd6Sr2Ul R3Vx4f1RpJxez2Kzjg6D9mAPHz6P9YGDhZd7u4PW75HSY+8sxkUQNXRzBM+rUBS7P9no fetflVEHQGx6F5fIXIsOgBLqlLyX9DHUTQ2H5MRqPkhcjonuqKsR9X774dQrhUmvKYWf zG6spBXHM4jUgdvbtqYNVQQQnb8fqinn5iiLPXfXFB/UeYdJcd+YFNt41TO9Btcl3SzL CBnQ== 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=8hr9n2512O9oc3i4dLmqoIkgO3MenCmq1W8DfYfMzNY=; b=afWypRuA9o9YcFjXvr/HZBTfXfua5TGUfltWGwhIh6RTN8Sk4KIESdf98Hu3xB3NZz PLjKFtBPgTwk+ugZwvcsFE23yEiAJaHFyBp2lBuTAqlSsW08W3xRZae0Z3WqAhNbwT6N jLYYudKT35vX7sKB/na6RYOGjgyFo9lag3I2kFvYFi9wtLO9sD5jaeZPmxMynkW+EgQQ bS8yGKq3tV5ubeHgSbdUwvXZORxpiCMQHpGT1+8lfMEyLM5V+6nTChocHC10NE7ozXIQ jqDlwUyj0e9Fo7ZKE6mJ6cgzhzHWt9FxotmSUlAsnJd2Fbh5LC+o3AeRxJIAmJ9ScibR 8OsA== X-Gm-Message-State: APjAAAWMxk+tUOmJ5Ra+uL2kyRUDV/zVH+bWo16qpBEJlLXEjaRThX7J 90/Ko0MiIxyjxRLzGBc0Cp8= X-Google-Smtp-Source: APXvYqyBRJp0d2epE/EaiW0vgWXrXPRZj9ceQxgfIezC3vSLjodwlI37p5LTFis3oCSvwCKHGZq1RQ== X-Received: by 2002:adf:fcc5:: with SMTP id f5mr31374503wrs.37.1571170240379; Tue, 15 Oct 2019 13:10:40 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:9d84:c831:fe55:4622]) by smtp.gmail.com with ESMTPSA id 79sm329194wmb.7.2019.10.15.13.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 13:10:39 -0700 (PDT) From: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> To: Dalon L Westergreen <dalon.westergreen@linux.intel.com> Date: Tue, 15 Oct 2019 22:10:14 +0200 Message-Id: <20191015201032.20156-2-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191015201032.20156-1-simon.k.r.goldschmidt@gmail.com> References: <20191015201032.20156-1-simon.k.r.goldschmidt@gmail.com> MIME-Version: 1.0 Cc: Marek Vasut <marex@denx.de>, u-boot@lists.denx.de Subject: [U-Boot] [RFC PATCH v2 01/18] 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
arm: socfpga: gen5: move to DM
|
expand
|
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, };
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 <simon.k.r.goldschmidt@gmail.com> --- Changes in v2: None drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)