]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Use PORT_CTRL_ADDR() instead of indirect function call
authorMarek Vasut <marex@denx.de>
Tue, 25 Jun 2019 23:43:43 +0000 (01:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:00:31 +0000 (11:00 -0700)
commit8889621aa3aaff0dcf18b6bde9f37bae19934aa6
treef877640d9d5f9d021166d21cdd4dc0859b97558c
parente542df64d0e9a8cb2564c90acd9966a98630d687
net: dsa: microchip: Use PORT_CTRL_ADDR() instead of indirect function call

The indirect function call to dev->dev_ops->get_port_addr() is expensive
especially if called for every single register access, and only returns
the value of PORT_CTRL_ADDR() macro. Use PORT_CTRL_ADDR() macro directly
instead.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c