diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ide.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index e39ee2fa2607..69dbe7dc04be 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -1454,4 +1454,11 @@ static inline int hwif_to_node(ide_hwif_t *hwif) | |||
| 1454 | return dev ? pcibus_to_node(dev->bus) : -1; | 1454 | return dev ? pcibus_to_node(dev->bus) : -1; |
| 1455 | } | 1455 | } |
| 1456 | 1456 | ||
| 1457 | static inline ide_drive_t *ide_get_paired_drive(ide_drive_t *drive) | ||
| 1458 | { | ||
| 1459 | ide_hwif_t *hwif = HWIF(drive); | ||
| 1460 | |||
| 1461 | return &hwif->drives[(drive->dn ^ 1) & 1]; | ||
| 1462 | } | ||
| 1463 | |||
| 1457 | #endif /* _IDE_H */ | 1464 | #endif /* _IDE_H */ |
