[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150515.212405.1595137643453957744.davem@davemloft.net>
Date: Fri, 15 May 2015 21:24:05 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: phy: Add state machine state transitions
debug prints
From: Florian Fainelli <f.fainelli@...il.com>
Date: Fri, 15 May 2015 14:18:42 -0700
> @@ -311,6 +311,30 @@ enum phy_state {
> PHY_RESUMING
> };
>
> +#define PHY_STATE_STR(_state) \
> + case PHY_##_state: \
> + return __stringify(_state); \
> +
> +static inline const char *phy_state_to_str(enum phy_state st)
> +{
Please put this into drivers/net/phy/phy.c as it's the only user.
This lines up with phy_speed_to_str() etc.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists