Comments

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>
---
drivers/net/sfc/mdio_10g.c | 87 ++++++++++++++------------------------------
drivers/net/sfc/mdio_10g.h | 4 ++
2 files changed, 32 insertions(+), 59 deletions(-)

From: Ben Hutchings <bhutchings@solarflare.com>
Date: Fri, 12 Dec 2008 12:54:34 +0000
> 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>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html