diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 13:12:21 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 13:12:21 -0400 |
commit | ca1b96e00ab5d1b0838965834469a0284c81a517 (patch) | |
tree | 694727e3e50eb651640f87aac51aed8fecc0a2c0 /drivers/ide/ide-probe.c | |
parent | 582078ee3d7dacd74a7b3fe02ea258cadf32b602 (diff) |
ide: replace special_t typedef by IDE_SFLAG_* flags
Replace:
- special_t typedef by IDE_SFLAG_* flags
- 'special_t special' ide_drive_t's field by 'u8 special_flags' one
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index b609a581df44..727a67109ff0 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -97,7 +97,7 @@ static void ide_disk_init_mult_count(ide_drive_t *drive) | |||
97 | drive->mult_req = id[ATA_ID_MULTSECT] & 0xff; | 97 | drive->mult_req = id[ATA_ID_MULTSECT] & 0xff; |
98 | 98 | ||
99 | if (drive->mult_req) | 99 | if (drive->mult_req) |
100 | drive->special.b.set_multmode = 1; | 100 | drive->special_flags |= IDE_SFLAG_SET_MULTMODE; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
@@ -1138,8 +1138,8 @@ static void ide_port_init_devices_data(ide_hwif_t *hwif) | |||
1138 | drive->hwif = hwif; | 1138 | drive->hwif = hwif; |
1139 | drive->ready_stat = ATA_DRDY; | 1139 | drive->ready_stat = ATA_DRDY; |
1140 | drive->bad_wstat = BAD_W_STAT; | 1140 | drive->bad_wstat = BAD_W_STAT; |
1141 | drive->special.b.recalibrate = 1; | 1141 | drive->special_flags = IDE_SFLAG_RECALIBRATE | |
1142 | drive->special.b.set_geometry = 1; | 1142 | IDE_SFLAG_SET_GEOMETRY; |
1143 | drive->name[0] = 'h'; | 1143 | drive->name[0] = 'h'; |
1144 | drive->name[1] = 'd'; | 1144 | drive->name[1] = 'd'; |
1145 | drive->name[2] = 'a' + j; | 1145 | drive->name[2] = 'a' + j; |