generic: ar8216: introduce ar8216_mib_op helper
authorGabor Juhos <juhosg@openwrt.org>
Thu, 22 Nov 2012 10:33:03 +0000 (10:33 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 22 Nov 2012 10:33:03 +0000 (10:33 +0000)
commit3205b52d1c88d40936d9f300e1b67ca174f4f248
treede8cc2302670e18c17cab1a6df93b71853a6a2c7
parentbca3953ee5f178303ed835f66784a4cb21f7c8cd
generic: ar8216: introduce ar8216_mib_op helper

The ar8216_mib_{capture,flush} functions are similar.
Move the common code into a helper and use that from
the original functions.

This change also fixes a lockdep warning in
ar8216_mib_flush.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34297
target/linux/generic/files/drivers/net/phy/ar8216.c