sfc: Clean up MDIO flag setting
authorBen Hutchings <bhutchings@solarflare.com>
Sat, 13 Dec 2008 05:48:57 +0000 (21:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Dec 2008 05:58:16 +0000 (21:58 -0800)
commit356eebb2b3af24cc701823f1e025f04eef333239
tree62f8e4e24e1e421d617fe08775dfd15b79862fdc
parent04300d248bd5166c00a59fa18efc1f7d041e9b32
sfc: Clean up MDIO flag setting

We often want to set or clear a flag in an MDIO register, but avoid
writing if no change is required since this can have side-effects.
Encapsulate this in a function, mdio_clause45_set_flag().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/mdio_10g.c
drivers/net/sfc/mdio_10g.h