/* Obtain the other device on the same cable, or if none is present NULL is returned  */
struct ata_device* ata_dev_pair(struct ata_device *adev)
/* Obtain the other device on the same cable, or if none is present NULL is returned  */
struct ata_device* ata_dev_pair(struct ata_device *adev)
{
	struct ata_link *link = adev->link;
	struct ata_device *pair = &link->device[1 - adev->devno];
	if (!ata_dev_enabled(pair))
		return NULL;
	return pair;
}