]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: pci: Make stmmac_pci_info structure constant
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 22 Jun 2017 06:17:57 +0000 (08:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 17:39:56 +0000 (13:39 -0400)
commitf1b3e371bb58996af78a84e666ff59fcffcbdf62
tree1ade8b5e3907c5cd68b94dabcc9bc3833ea51413
parent0170ebad1f49a446e252de0aa10318cb656a7164
stmmac: pci: Make stmmac_pci_info structure constant

By removing the PCI device reference from the structure and passing it
as parameters to the interested functions, we can make quark_pci_info
const.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c