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)
commitc5d5287ef0f763e836bf94659b3a6080358373f1
tree1ade8b5e3907c5cd68b94dabcc9bc3833ea51413
parent53fa1a6f33520f01f9dbee48369074b34d77616b
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