generic: ar8216: introduce ar8216_mib_op helper
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Nov 2012 10:33:03 +0000 (10:33 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Nov 2012 10:33:03 +0000 (10:33 +0000)
commit442227fcf267604ade254b6d77e37883411d40ad
tree6ed38599b1d16c30c088d1865b4b2f7901bfde54
parent46133b05e3bb29f28a00d3fddfb5994027593825
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