]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
r8169: create function pointer array for PHY init functions
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 14 Apr 2019 08:30:24 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:50:05 +0000 (13:50 -0700)
commit1fcd165884c8bc5a5605d429d53de5784def46bb
tree99c1b82b4c53f18d906c04e275791c1d1e1e8bed
parentc19571264dd753a8fb7d2ca2d493ef709a57a9c6
r8169: create function pointer array for PHY init functions

Using a function pointer array makes this easier to read and better
maintainable. AFAIK function pointer arrays cause some performance
drawback due to Spectre mitigation, but we're not in a hot path here.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c