Thread (1 message) 1 message, 1 author, 2020-06-25

Re: [PATCH 06/11] phy: un-inline devm_mdiobus_register()

From: Bartosz Golaszewski <hidden>
Date: 2020-06-25 09:16:17
Also in: intel-wired-lan, linux-arm-kernel, linux-devicetree, linux-doc, lkml, netdev

On Tue, Jun 23, 2020 at 1:55 AM Florian Fainelli [off-list ref] wrote:
On 6/22/20 3:00 AM, Bartosz Golaszewski wrote:
quoted
From: Bartosz Golaszewski <redacted>

Functions should only be static inline if they're very short. This
devres helper is already over 10 lines and it will grow soon as we'll
be improving upon its approach. Pull it into mdio_devres.c.

Signed-off-by: Bartosz Golaszewski <redacted>
---
 drivers/net/phy/Makefile      |  2 +-
 drivers/net/phy/mdio_devres.c | 18 ++++++++++++++++++
 include/linux/phy.h           | 15 ++-------------
 3 files changed, 21 insertions(+), 14 deletions(-)
 create mode 100644 drivers/net/phy/mdio_devres.c
This would likely require an update to the MAINTAINERS file for this new
file to be picked up by the correct entry.
It's already included in drivers/net/phy/ in the ETHERNET PHY LIBRARY entry.

Bartosz

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help