OSDN Git Service

net: phylink: Add phylink_{printk, err, warn, info, dbg} macros
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:14 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit17091180b1521ee9b4455d75ab61b35bc0b216ff
tree6258da517a7da5ff9938eff8d817d3a874fb2a1d
parent43de61959b999279bafb031c0c9bdf0f6cd1c501
net: phylink: Add phylink_{printk, err, warn, info, dbg} macros

With the latest addition to the PHYLINK infrastructure, we are faced
with a decision on when to print necessary info using the struct
net_device and when with the struct device.

Add a series of macros that encapsulate this decision and replace all
uses of netdev_err&co with phylink_err.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c