Messages in this thread Patch in this message | | | Subject | Re: [PATCH 2.6.11-rc2 10/14] ide_pci: Removes SPLIT_BYTE macro from pdc202xx_old | From | Tejun Heo <> | Date | Fri, 4 Feb 2005 16:13:19 +0900 (KST) |
| |
10_ide_pci_pdc202xx_old_cleanup.patch
Removes SPLIT_BYTE macro from ide/pci/pdc202xx_old driver.
Signed-off-by: Tejun Heo <tj@home-tj.org>
Index: linux-idepci-export/drivers/ide/pci/pdc202xx_old.c =================================================================== --- linux-idepci-export.orig/drivers/ide/pci/pdc202xx_old.c 2005-02-04 16:07:36.544417372 +0900 +++ linux-idepci-export/drivers/ide/pci/pdc202xx_old.c 2005-02-04 16:08:26.197330649 +0900 @@ -69,7 +69,8 @@ ((sc1c & 0x02) == 0x02) ? "8" : ((sc1c & 0x01) == 0x01) ? "6" : ((sc1c & 0x00) == 0x00) ? "4" : "??"); - SPLIT_BYTE(sc1e, hi, lo); + hi = sc1e >> 4; + lo = sc1e & 0xf; p += sprintf(p, "Status Polling Period : %d\n", hi); p += sprintf(p, "Interrupt Check Status Polling Delay : %d\n", lo); #endif Index: linux-idepci-export/drivers/ide/pci/pdc202xx_old.h =================================================================== --- linux-idepci-export.orig/drivers/ide/pci/pdc202xx_old.h 2005-02-04 16:07:36.544417372 +0900 +++ linux-idepci-export/drivers/ide/pci/pdc202xx_old.h 2005-02-04 16:08:26.197330649 +0900 @@ -5,10 +5,6 @@ #include <linux/pci.h> #include <linux/ide.h> -#ifndef SPLIT_BYTE -#define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4))) -#endif - #define PDC202XX_DEBUG_DRIVE_INFO 0 static const char *pdc_quirk_drives[] = { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |