Sergei Shtylyov 30dfd12f53 piix: tuneproc() fixes/cleanups
Fix/cleanup the driver's tuneproc() and ratemask() methods:

- PPE, IE, and TIME bits need to be cleared beforehand for the slave drive as
  well as master (Alan probably just forgot about it);

- this driver only supports PIO modes up to 4, so must pass the correct limit
  to ide_get_best_pio_mode();

- use min_t() macro instead of min();

- simplify slave vs master drive evaluation;

- do come coding and formatting cleanups...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-07 18:18:28 +01:00
..
2007-01-26 13:50:58 -08:00
2007-01-23 11:09:49 -08:00
2006-12-07 08:39:24 -08:00
2007-02-07 18:18:28 +01:00
2007-01-06 09:32:49 -06:00
2007-02-02 11:52:05 -05:00
2006-12-11 13:49:53 +11:00
2007-02-05 21:18:53 +01:00
2006-12-08 08:28:57 -08:00
2006-12-13 09:05:48 -08:00
2006-12-08 08:28:50 -08:00
2006-12-10 09:57:22 -08:00
2006-12-10 09:57:22 -08:00