[libata] sata_mv: Fix and clean up per-chip-generation tests
authorJeff Garzik <jeff@garzik.org>
Thu, 12 Jul 2007 19:51:22 +0000 (15:51 -0400)
committerJeff Garzik <jeff@garzik.org>
Thu, 12 Jul 2007 19:51:22 +0000 (15:51 -0400)
commitee9ccdf70163ca6408f6965e0fbc65baeac7312c
treed8e8643c57656d2ea07e2a15c91735d2aeb0ab84
parentbdd4dddee325a7dce3e84cf48201a06aa8508aa4
[libata] sata_mv: Fix and clean up per-chip-generation tests

Due to a mistake in test logic, Gen-IIE chips were being treated as
Gen-II chips in some cases.  Fix this, and in the process, clean up
IS_50XX/IS_60XX tests to the more uniform IS_GEN_{I,II,IIE} tests.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c