]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: constify the sja1105_regs structures
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 14 Jun 2021 13:50:50 +0000 (16:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 20:14:24 +0000 (13:14 -0700)
commitb58ac7658039b64a2e607875d592ff9fdc0d2a3c
treeabfcdf3c6dd091ff9698d6c6950545871345fc01
parent41eb6574ff494acf17e8196d295ac3994d33136b
net: dsa: sja1105: constify the sja1105_regs structures

The struct sja1105_regs tables are not modified during the runtime of
the driver, so they can be made constant. In fact, struct sja1105_info
already holds a const pointer to these.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_spi.c