diff mbox series

[U-Boot,v3,6/6] board: ti: k2g: Make ddr3* declarations as static

Message ID 20171228151003.19500-7-lokeshvutla@ti.com
State Accepted
Commit f1627bdc19fb6b6677a95093a6c59b09cf17ef29
Delegated to: Tom Rini
Headers show
Series arm: ti: misc updates and bug fixes | expand

Commit Message

Lokesh Vutla Dec. 28, 2017, 3:10 p.m. UTC
All ddr3_emif declarations are not used outside ddr3_k2g.c
file. So make all of them as static.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/ks2_evm/ddr3_k2g.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Tom Rini Jan. 1, 2018, 1:39 p.m. UTC | #1
On Thu, Dec 28, 2017 at 08:40:03PM +0530, Lokesh Vutla wrote:

> All ddr3_emif declarations are not used outside ddr3_k2g.c
> file. So make all of them as static.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini Jan. 19, 2018, 9:12 p.m. UTC | #2
On Thu, Dec 28, 2017 at 08:40:03PM +0530, Lokesh Vutla wrote:

> All ddr3_emif declarations are not used outside ddr3_k2g.c
> file. So make all of them as static.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/ti/ks2_evm/ddr3_k2g.c b/board/ti/ks2_evm/ddr3_k2g.c
index 6f6fce6a24..3398246e28 100644
--- a/board/ti/ks2_evm/ddr3_k2g.c
+++ b/board/ti/ks2_evm/ddr3_k2g.c
@@ -14,7 +14,7 @@ 
 #include "board.h"
 
 /* K2G GP EVM DDR3 Configuration */
-struct ddr3_phy_config ddr3phy_800_2g = {
+static struct ddr3_phy_config ddr3phy_800_2g = {
 	.pllcr          = 0x000DC000ul,
 	.pgcr1_mask     = (IODDRM_MASK | ZCKSEL_MASK),
 	.pgcr1_val      = ((1 << 2) | (1 << 7) | (1 << 23)),
@@ -94,7 +94,7 @@  static struct ddr3_phy_config ddr3phy_1066_2g = {
 	.pir_v2         = 0x00000F81ul,
 };
 
-struct ddr3_emif_config ddr3_800_2g = {
+static struct ddr3_emif_config ddr3_800_2g = {
 	.sdcfg          = 0x62005662ul,
 	.sdtim1         = 0x0A385033ul,
 	.sdtim2         = 0x00001CA5ul,
@@ -104,7 +104,7 @@  struct ddr3_emif_config ddr3_800_2g = {
 	.sdrfc          = 0x00000C34ul,
 };
 
-struct ddr3_emif_config ddr3_1066_2g = {
+static struct ddr3_emif_config ddr3_1066_2g = {
 	.sdcfg          = 0x62005662ul,
 	.sdtim1         = 0x0E4C6843ul,
 	.sdtim2         = 0x00001CC6ul,
@@ -115,7 +115,7 @@  struct ddr3_emif_config ddr3_1066_2g = {
 };
 
 /* K2G ICE evm DDR3 Configuration */
-struct ddr3_phy_config ddr3phy_800_512mb = {
+static struct ddr3_phy_config ddr3phy_800_512mb = {
 	.pllcr          = 0x000DC000ul,
 	.pgcr1_mask     = (IODDRM_MASK | ZCKSEL_MASK),
 	.pgcr1_val      = ((1 << 2) | (2 << 7) | (1 << 23)),
@@ -155,7 +155,7 @@  struct ddr3_phy_config ddr3phy_800_512mb = {
 	.pir_v2         = 0x00000F81ul,
 };
 
-struct ddr3_emif_config ddr3_800_512mb = {
+static struct ddr3_emif_config ddr3_800_512mb = {
 	.sdcfg          = 0x62006662ul,
 	.sdtim1         = 0x0A385033ul,
 	.sdtim2         = 0x00001CA5ul,