ata_piix: unify code for programming PIO and MWDMA timings
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 13 Oct 2011 13:39:10 +0000 (15:39 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 Oct 2011 17:37:36 +0000 (13:37 -0400)
commit6a94a746fb2572c03c664acece101ee03dae7a17
tree08362472bd03ce67d30955cb4caa5310ab9f31b7
parentce986690d9bfabb8c61fd8fe785fce5d95210b66
ata_piix: unify code for programming PIO and MWDMA timings

Besides making things noticably simpler it results in ~2% decrease in
the driver LOC count and also ~2% decrease in the driver binary size
(as measured on x86-32).

Fix piix_set_piomode() documentation while at it.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_piix.c