]> git.neil.brown.name Git - history.git/commitdiff
[ide aec62xx] remove SPLIT_BYTE() and MAKE_WORD() macros
authorTejun Heo <tj@home-tj.org>
Sun, 6 Feb 2005 02:02:31 +0000 (03:02 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@trik.(none)>
Sun, 6 Feb 2005 02:02:31 +0000 (03:02 +0100)
bart: leave BUSCLOCK() alone for now

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/aec62xx.c
drivers/ide/pci/aec62xx.h

index 34774406518da64b4c14c40cc01ad76643cac708..39d6b0ef483ffbdad1ebbb276d35cfe857dc7432 100644 (file)
@@ -101,8 +101,7 @@ static int aec6210_tune_chipset (ide_drive_t *drive, u8 xferspeed)
        /* 0x40|(2*drive->dn): Active, 0x41|(2*drive->dn): Recovery */
        pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf);
        tmp0 = pci_bus_clock_list(speed, BUSCLOCK(dev));
-       SPLIT_BYTE(tmp0,tmp1,tmp2);
-       MAKE_WORD(d_conf,tmp1,tmp2);
+       d_conf = ((tmp0 & 0xf0) << 4) | (tmp0 & 0xf);
        pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf);
 
        tmp1 = 0x00;
index 0a7ba1563263f28d54e00dd2501af33e16160b8e..ef7109c6c2df16cfd9512382f59b60651a8da99a 100644 (file)
@@ -51,13 +51,6 @@ static struct chipset_bus_clock_list_entry aec6xxx_34_base [] = {
        {       0,              0x00,   0x00    }
 };
 
-#ifndef SPLIT_BYTE
-#define SPLIT_BYTE(B,H,L)      ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
-#endif
-#ifndef MAKE_WORD
-#define MAKE_WORD(W,HB,LB)     ((W)=((HB<<8)+LB))
-#endif
-
 #define BUSCLOCK(D)    \
        ((struct chipset_bus_clock_list_entry *) pci_get_drvdata((D)))