diff options
author | John Crispin <john@openwrt.org> | 2015-01-17 14:24:56 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-01-17 14:24:56 +0000 |
commit | 64ccdb98fbb6b4f3cebbc263696dda3a7cf62fdf (patch) | |
tree | 37aaff5d7b6ed03de2b9ff6030105968d7cc9046 /target/linux/generic/files/drivers/net/phy/ar8216.h | |
parent | 0fb39e6f4b1849fe898cbe5339b3aec721bf63c8 (diff) | |
download | mtk-20170518-64ccdb98fbb6b4f3cebbc263696dda3a7cf62fdf.zip mtk-20170518-64ccdb98fbb6b4f3cebbc263696dda3a7cf62fdf.tar.gz mtk-20170518-64ccdb98fbb6b4f3cebbc263696dda3a7cf62fdf.tar.bz2 |
ar8216: introduce ar8xxx_reg_clear complementing ar8xxx_reg_set
Introduce ar8xxx_reg_clear complementing ar8xxx_reg_set.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 44004
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.h b/target/linux/generic/files/drivers/net/phy/ar8216.h index 50f2252..d3d0443 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic/files/drivers/net/phy/ar8216.h @@ -536,4 +536,10 @@ ar8xxx_reg_set(struct ar8xxx_priv *priv, int reg, u32 val) ar8xxx_rmw(priv, reg, 0, val); } +static inline void +ar8xxx_reg_clear(struct ar8xxx_priv *priv, int reg, u32 val) +{ + ar8xxx_rmw(priv, reg, val, 0); +} + #endif |