lkml.org 
[lkml]   [2017]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] phy: xgene: make array serdes_reg static const
Date
From: Colin Ian King <colin.king@canonical.com>

Don't populate the array serdes_reg on the stack, instead make it
static const. Makes the object code smaller by 150 bytes:

Before:
text data bss dec hex filename
21890 6432 64 28386 6ee2 drivers/phy/phy-xgene.o

After:
text data bss dec hex filename
21644 6528 64 28236 6e4c drivers/phy/phy-xgene.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/phy/phy-xgene.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/phy-xgene.c b/drivers/phy/phy-xgene.c
index ae266e0c8368..06a53abfec61 100644
--- a/drivers/phy/phy-xgene.c
+++ b/drivers/phy/phy-xgene.c
@@ -1354,7 +1354,7 @@ static int xgene_phy_hw_initialize(struct xgene_phy_ctx *ctx,
static void xgene_phy_force_lat_summer_cal(struct xgene_phy_ctx *ctx, int lane)
{
int i;
- struct {
+ static const struct {
u32 reg;
u32 val;
} serdes_reg[] = {
--
2.14.1
\
 
 \ /
  Last update: 2017-09-01 18:00    [W:0.028 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site