summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt366.c
diff options
context:
space:
mode:
authorSergei Shtylyov2009-12-07 20:30:06 +0100
committerJeff Garzik2010-03-01 20:58:43 +0100
commit1a1b172b9672e88d37adb5925b509e9236625d7e (patch)
tree9ccb1bb12343ed4ab5799d9ab08bd67f5b75bfba /drivers/ata/pata_hpt366.c
parentpata_hpt3x2n: always stretch UltraDMA timing (diff)
downloadkernel-qcow2-linux-1a1b172b9672e88d37adb5925b509e9236625d7e.tar.gz
kernel-qcow2-linux-1a1b172b9672e88d37adb5925b509e9236625d7e.tar.xz
kernel-qcow2-linux-1a1b172b9672e88d37adb5925b509e9236625d7e.zip
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>
Diffstat (limited to 'drivers/ata/pata_hpt366.c')
0 files changed, 0 insertions, 0 deletions