staging: et131x: Create et131x_[dis|en]able_txrx() calls
authorMark Einon <mark.einon@gmail.com>
Sun, 25 Sep 2011 18:17:55 +0000 (19:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:39:16 +0000 (17:39 -0700)
commit7fabca4d9183a449676648b93307e29299595866
treede9aa3e146070c25ae25051bc7f28cbb0214c86b
parent268420aa840ce6d5c18035ce6d7ebc4244b2cb1f
staging: et131x: Create et131x_[dis|en]able_txrx() calls

In et131x_netdev.c, a series of calls to enable and diasble the rx/tx engine and queue are being used in several different places.
Create two functions to encapsulate these calls, and replace many calls with just the one.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et131x.h
drivers/staging/et131x/et131x_netdev.c