NET: sa11x0-ir: factor out speed checks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Jan 2012 16:30:44 +0000 (16:30 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:37:55 +0000 (15:37 +0000)
commit0e888ee31566c3f5071474ddd68457a7ad2ae5ac
tree78e102ec67f0873c6095826796077ced2e7cded3
parentcbe1d24fb70751ef14801338aa945e807ba63a90
NET: sa11x0-ir: factor out speed checks

Whenever we complete a transmit, we always check for a speed change.
This check was open coded in several places.  Provide a helper
function to do this instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/irda/sa1100_ir.c