No functional changes in this patch. Signed-off-by: Erik Inge Bolsø <knan-lkml@xxxxxxxxxx> --- drivers/ata/pata_at32.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index ab61095..131b20c 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c @@ -58,16 +58,18 @@ * ATA PIO modes * * Name | Mb/s | Min cycle time | Mask - * --------+-------+----------------+-------- - * Mode 0 | 3.3 | 600 ns | 0x01 - * Mode 1 | 5.2 | 383 ns | 0x03 - * Mode 2 | 8.3 | 240 ns | 0x07 - * Mode 3 | 11.1 | 180 ns | 0x0f - * Mode 4 | 16.7 | 120 ns | 0x1f + * --------+-------+----------------+---------- + * Mode 0 | 3.3 | 600 ns | ATA_PIO0 + * Mode 1 | 5.2 | 383 ns | ATA_PIO1 + * Mode 2 | 8.3 | 240 ns | ATA_PIO2 + * Mode 3 | 11.1 | 180 ns | ATA_PIO3 + * Mode 4 | 16.7 | 120 ns | ATA_PIO4 * * Alter PIO_MASK below according to table to set maximal PIO mode. */ -#define PIO_MASK (0x1f) +enum { + PIO_MASK = ATA_PIO4, +}; /* * Struct containing private information about device. -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html