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)
commit1ef9ccffe2a001e55b8c7b5e215d4bfe9e92b125
tree6ed38599b1d16c30c088d1865b4b2f7901bfde54
parentc1678d8799b31988e207530830fc4ce818550c02
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34297 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c