Skip to content

Commit 86dc59e

Browse files
Wang Haidavem330
authored andcommitted
net: dsa: sja1105: Make 'sja1105et_regs' and 'sja1105pqrs_regs' static
drivers/net/dsa/sja1105/sja1105_spi.c:486:21: warning: symbol 'sja1105et_regs' was not declared. Should it be static? drivers/net/dsa/sja1105/sja1105_spi.c:511:21: warning: symbol 'sja1105pqrs_regs' was not declared. Should it be static? Fixes: 8aa9ebc ("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wang Hai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c7e0d6c commit 86dc59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/dsa/sja1105/sja1105_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ int sja1105_static_config_upload(struct sja1105_private *priv)
483483
return rc;
484484
}
485485

486-
struct sja1105_regs sja1105et_regs = {
486+
static struct sja1105_regs sja1105et_regs = {
487487
.device_id = 0x0,
488488
.prod_id = 0x100BC3,
489489
.status = 0x1,
@@ -508,7 +508,7 @@ struct sja1105_regs sja1105et_regs = {
508508
.rmii_ext_tx_clk = {0x100018, 0x10001F, 0x100026, 0x10002D, 0x100034},
509509
};
510510

511-
struct sja1105_regs sja1105pqrs_regs = {
511+
static struct sja1105_regs sja1105pqrs_regs = {
512512
.device_id = 0x0,
513513
.prod_id = 0x100BC3,
514514
.status = 0x1,

0 commit comments

Comments
 (0)