mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-08 00:23:23 -04:00
[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>
This commit is contained in:
parent
a0ab51cefc
commit
38d87234d6
2 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,7 @@ struct ata_host_stats {
|
|||
};
|
||||
|
||||
struct ata_device {
|
||||
struct ata_port *ap;
|
||||
u64 n_sectors; /* size of device, if ATA */
|
||||
unsigned long flags; /* ATA_DFLAG_xxx */
|
||||
unsigned int class; /* ATA_DEV_xxx */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue