pata_hpt366: add hpt36x_find_mode() helper
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 11 Oct 2011 17:52:31 +0000 (19:52 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 Oct 2011 17:07:18 +0000 (13:07 -0400)
commitdc5e44ec6f75d493df484728587b00b87a233482
tree1c2c86410c3398d925d68965d83f310447dff062
parentf6b56696b974a7d6d55f98ebcfb0a1099696fc2e
pata_hpt366: add hpt36x_find_mode() helper

Factor out code for finding the register programming information
from hpt366_set_mode() to hpt36x_find_mode().

This makes pata_hpt366 driver more similar to pata_{37x,3x2n} ones.

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