pata_hpt{37x|3x2n}: unify mode programming
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Mon, 7 Dec 2009 19:30:06 +0000 (23:30 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Mar 2010 19:58:43 +0000 (14:58 -0500)
commit1a1b172b9672e88d37adb5925b509e9236625d7e
tree9ccb1bb12343ed4ab5799d9ab08bd67f5b75bfba
parent60661933995bc7a09686c901439e17c2a4ea7d5d
pata_hpt{37x|3x2n}: unify mode programming

As these drivers' set_piomode() and set_dmamode() methods are almost
identical, factor out the common hpt{37x|3x2n}_set_mode() function
to be called by both of them, the same as in 'pata_hpt366' driver.

This results in ~5% decrease in the 'pata_hpt37x' driver binary
size and in ~4% decrease in the 'pata_hpt3x2n' driver binary size
(as measured on x86-32).

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_hpt37x.c
drivers/ata/pata_hpt3x2n.c