AA: generic: ar8216: introduce ar8216_mib_op helper
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 25 Nov 2012 16:23:03 +0000 (16:23 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 25 Nov 2012 16:23:03 +0000 (16:23 +0000)
commitac8a06ae909035f6aeaf3cdf000f4d3b3a9c086d
tree9e312582682f94e98cf2b572a5be2a81af90b6c9
parent7931b6c13db572b93df431bf4e049303d4e7b72d
AA: generic: ar8216: introduce ar8216_mib_op helper

Backport of r34297.

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/branches/attitude_adjustment@34372 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c