Skip to content

Commit

Permalink
[libata] linux/libata.h: reorganize ata_device struct members a bit
Browse files Browse the repository at this point in the history
Put the big stuff at the end, to prepare for upcoming changes (and
also hopefully achieve nicer packing of remaining members).

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Apr 29, 2008
1 parent 22b5e7a commit f7e9893
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,6 @@ struct ata_device {
u64 n_sectors; /* size of device, if ATA */
unsigned int class; /* ATA_DEV_xxx */

union {
u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */
u32 gscr[SATA_PMP_GSCR_DWORDS]; /* PMP GSCR block */
};

u8 pio_mode;
u8 dma_mode;
u8 xfer_mode;
Expand All @@ -574,8 +569,13 @@ struct ata_device {
u16 sectors; /* Number of sectors per track */

/* error history */
struct ata_ering ering;
int spdn_cnt;
struct ata_ering ering;

union {
u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */
u32 gscr[SATA_PMP_GSCR_DWORDS]; /* PMP GSCR block */
};
};

/* Offset into struct ata_device. Fields above it are maintained
Expand Down

0 comments on commit f7e9893

Please sign in to comment.