Commit 0699b3e0 authored by Colin Foster's avatar Colin Foster Committed by David S. Miller

net: pcs: lynx: use a common naming scheme for all lynx_pcs variables

pcs-lynx.c used lynx_pcs and lynx as a variable name within the same file.
This standardizes all internal variables to just "lynx"
Signed-off-by: default avatarColin Foster <colin.foster@in-advantage.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82cc4537
...@@ -345,17 +345,17 @@ static const struct phylink_pcs_ops lynx_pcs_phylink_ops = { ...@@ -345,17 +345,17 @@ static const struct phylink_pcs_ops lynx_pcs_phylink_ops = {
struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio)
{ {
struct lynx_pcs *lynx_pcs; struct lynx_pcs *lynx;
lynx_pcs = kzalloc(sizeof(*lynx_pcs), GFP_KERNEL); lynx = kzalloc(sizeof(*lynx), GFP_KERNEL);
if (!lynx_pcs) if (!lynx)
return NULL; return NULL;
lynx_pcs->mdio = mdio; lynx->mdio = mdio;
lynx_pcs->pcs.ops = &lynx_pcs_phylink_ops; lynx->pcs.ops = &lynx_pcs_phylink_ops;
lynx_pcs->pcs.poll = true; lynx->pcs.poll = true;
return lynx_to_phylink_pcs(lynx_pcs); return lynx_to_phylink_pcs(lynx);
} }
EXPORT_SYMBOL(lynx_pcs_create); EXPORT_SYMBOL(lynx_pcs_create);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment