diff options
| author | Vojtech Pavlik <vojtech@suse.cz> | 2002-03-12 18:34:39 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-03-12 18:34:39 -0800 |
| commit | 78ca401062ab6c1bb28be922437143969e309c99 (patch) | |
| tree | c6e20db52ac2e3ddf7f96f67b8c06d4443ed5db4 | |
| parent | 10cea35adc4699670022c311c7d17526ce188bec (diff) | |
[PATCH] Re: [PATCH] IDE 21
In the FIT macro in ide-timing.h the argument got swapped because of a
typo. All timings generated for VIA and AMD chips are wrong because of
that. Safe, though, but slow.
This fixes it.
| -rw-r--r-- | drivers/ide/ata-timing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ata-timing.h b/drivers/ide/ata-timing.h index 16374b6d3af3..59dbeed0bb84 100644 --- a/drivers/ide/ata-timing.h +++ b/drivers/ide/ata-timing.h @@ -55,7 +55,7 @@ extern struct ata_timing ata_timing[]; #define IDE_TIMING_UDMA 0x80 #define IDE_TIMING_ALL 0xff -#define FIT(v,x,y) max_t(int,min_t(int,v,x),y) +#define FIT(v,x,y) max_t(int,min_t(int,v,y),x) #define ENOUGH(v,unit) (((v)-1)/(unit)+1) #define EZ(v,unit) ((v)?ENOUGH(v,unit):0) |
