diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:51 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:51 -0400 |
commit | 38d87234d6c47ca487fc6344100323d5adc6f32c (patch) | |
tree | 5136dc203543954ab8340988c3a18fcec39bf533 /include/linux/libata.h | |
parent | a0ab51cefc95cb7756c4914603fea2b1a0f813c5 (diff) |
[PATCH] libata: add dev->ap
Add dev->ap which points back to the port the device belongs to. This
makes it unnecessary to pass @ap for silly reasons (e.g. printks).
Also, this change is necessary to accomodate later PM support which
will introduce ATA link inbetween port and device.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index cd467cd54473..ac2d2cc78b10 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -358,6 +358,7 @@ struct ata_host_stats { | |||
358 | }; | 358 | }; |
359 | 359 | ||
360 | struct ata_device { | 360 | struct ata_device { |
361 | struct ata_port *ap; | ||
361 | u64 n_sectors; /* size of device, if ATA */ | 362 | u64 n_sectors; /* size of device, if ATA */ |
362 | unsigned long flags; /* ATA_DFLAG_xxx */ | 363 | unsigned long flags; /* ATA_DFLAG_xxx */ |
363 | unsigned int class; /* ATA_DEV_xxx */ | 364 | unsigned int class; /* ATA_DEV_xxx */ |