]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: make the instantiations of struct sja1105_info constant
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 20 Jun 2020 17:18:32 +0000 (20:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:01:29 +0000 (16:01 -0700)
commit50f0bf8f21ae93e42292fb818d7e97eb6bcdf10e
treeff4958852859c2fa952f16227dae5341291872c5
parent7f71e6853f80314f1f19d80240012af4129db94b
net: dsa: sja1105: make the instantiations of struct sja1105_info constant

Since struct sja1105_private only holds a const pointer to one of these
structures based on device tree compatible string, the structures
themselves can be made const.

Also add an empty line between each structure definition, to appease
checkpatch.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_spi.c