@@ -626,7 +626,7 @@ static struct hpt_info *hpt3xx_get_info(struct device *dev)
626626
627627static u8 hpt3xx_udma_filter (ide_drive_t * drive )
628628{
629- ide_hwif_t * hwif = HWIF ( drive ) ;
629+ ide_hwif_t * hwif = drive -> hwif ;
630630 struct hpt_info * info = hpt3xx_get_info (hwif -> dev );
631631 u8 mask = hwif -> ultra_mask ;
632632
@@ -665,7 +665,7 @@ static u8 hpt3xx_udma_filter(ide_drive_t *drive)
665665
666666static u8 hpt3xx_mdma_filter (ide_drive_t * drive )
667667{
668- ide_hwif_t * hwif = HWIF ( drive ) ;
668+ ide_hwif_t * hwif = drive -> hwif ;
669669 struct hpt_info * info = hpt3xx_get_info (hwif -> dev );
670670
671671 switch (info -> chip_type ) {
@@ -743,7 +743,7 @@ static void hpt3xx_quirkproc(ide_drive_t *drive)
743743
744744static void hpt3xx_maskproc (ide_drive_t * drive , int mask )
745745{
746- ide_hwif_t * hwif = HWIF ( drive ) ;
746+ ide_hwif_t * hwif = drive -> hwif ;
747747 struct pci_dev * dev = to_pci_dev (hwif -> dev );
748748 struct hpt_info * info = hpt3xx_get_info (hwif -> dev );
749749
@@ -788,7 +788,7 @@ static void hpt366_dma_lost_irq(ide_drive_t *drive)
788788
789789static void hpt370_clear_engine (ide_drive_t * drive )
790790{
791- ide_hwif_t * hwif = HWIF ( drive ) ;
791+ ide_hwif_t * hwif = drive -> hwif ;
792792 struct pci_dev * dev = to_pci_dev (hwif -> dev );
793793
794794 pci_write_config_byte (dev , hwif -> select_data , 0x37 );
@@ -797,7 +797,7 @@ static void hpt370_clear_engine(ide_drive_t *drive)
797797
798798static void hpt370_irq_timeout (ide_drive_t * drive )
799799{
800- ide_hwif_t * hwif = HWIF ( drive ) ;
800+ ide_hwif_t * hwif = drive -> hwif ;
801801 struct pci_dev * dev = to_pci_dev (hwif -> dev );
802802 u16 bfifo = 0 ;
803803 u8 dma_cmd ;
@@ -822,7 +822,7 @@ static void hpt370_dma_start(ide_drive_t *drive)
822822
823823static int hpt370_dma_end (ide_drive_t * drive )
824824{
825- ide_hwif_t * hwif = HWIF ( drive ) ;
825+ ide_hwif_t * hwif = drive -> hwif ;
826826 u8 dma_stat = inb (hwif -> dma_base + ATA_DMA_STATUS );
827827
828828 if (dma_stat & 0x01 ) {
@@ -844,7 +844,7 @@ static void hpt370_dma_timeout(ide_drive_t *drive)
844844/* returns 1 if DMA IRQ issued, 0 otherwise */
845845static int hpt374_dma_test_irq (ide_drive_t * drive )
846846{
847- ide_hwif_t * hwif = HWIF ( drive ) ;
847+ ide_hwif_t * hwif = drive -> hwif ;
848848 struct pci_dev * dev = to_pci_dev (hwif -> dev );
849849 u16 bfifo = 0 ;
850850 u8 dma_stat ;
@@ -865,7 +865,7 @@ static int hpt374_dma_test_irq(ide_drive_t *drive)
865865
866866static int hpt374_dma_end (ide_drive_t * drive )
867867{
868- ide_hwif_t * hwif = HWIF ( drive ) ;
868+ ide_hwif_t * hwif = drive -> hwif ;
869869 struct pci_dev * dev = to_pci_dev (hwif -> dev );
870870 u8 mcr = 0 , mcr_addr = hwif -> select_data ;
871871 u8 bwsr = 0 , mask = hwif -> channel ? 0x02 : 0x01 ;
@@ -927,7 +927,7 @@ static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode)
927927
928928static void hpt3xxn_rw_disk (ide_drive_t * drive , struct request * rq )
929929{
930- hpt3xxn_set_clock (HWIF ( drive ) , rq_data_dir (rq ) ? 0x23 : 0x21 );
930+ hpt3xxn_set_clock (drive -> hwif , rq_data_dir (rq ) ? 0x23 : 0x21 );
931931}
932932
933933/**
0 commit comments