Commit a3e51d47 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski
Browse files

net: phy: add phylib-internal.h



This patch is a starting point for moving phylib-internal
declarations to a private header file.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/082eacd2-a888-4716-8797-b3491ce02820@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7842f3d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
#include <linux/phy.h>

#include "mdio-open-alliance.h"
#include "phylib-internal.h"

/**
 * genphy_c45_baset1_able - checks if the PMA has BASE-T1 extended abilities
+2 −1
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
#include <linux/phy.h>
#include <linux/of.h>

#include "phylib-internal.h"

/**
 * phy_speed_to_str - Return a string representing the PHY link speed
 *
@@ -544,7 +546,6 @@ void phy_check_downshift(struct phy_device *phydev)

	phydev->downshifted_rate = 1;
}
EXPORT_SYMBOL_GPL(phy_check_downshift);

static int phy_resolve_min_speed(struct phy_device *phydev, bool fdx_only)
{
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@
#include <net/genetlink.h>
#include <net/sock.h>

#include "phylib-internal.h"

#define PHY_STATE_TIME	HZ

#define PHY_STATE_STR(_state)			\
+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@
#include <linux/uaccess.h>
#include <linux/unistd.h>

#include "phylib-internal.h"

MODULE_DESCRIPTION("PHY library");
MODULE_AUTHOR("Andy Fleming");
MODULE_LICENSE("GPL");
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
#include <linux/phy_led_triggers.h>
#include <linux/netdevice.h>

#include "phylib-internal.h"

static struct phy_led_trigger *phy_speed_to_led_trigger(struct phy_device *phy,
							unsigned int speed)
{
Loading