]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ide: make 'extra' field in struct ide_port_info u8
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:17 +0000 (22:17 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:17 +0000 (22:17 +0100)
The maximum value used currently for 'extra' field in struct ide_port_info
is 240.

Make 'extra' u8 so it packs nicely together with enablebits[] and 'chipset'
fields (ide_pci_enablebit_t is 3 bytes and hwif_chipset_t is 1 byte).

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
include/linux/ide.h

index ecaa96e613dc75ffbe4fe0eaab2e0e8566f3e841..6f5b6b5e9c1d23306b3d0968a564c93a7aff9e6b 100644 (file)
@@ -1111,7 +1111,7 @@ struct ide_port_info {
        void                    (*fixup)(ide_hwif_t *);
        ide_pci_enablebit_t     enablebits[2];
        hwif_chipset_t          chipset;
-       unsigned int            extra;
+       u8                      extra;
        u32                     host_flags;
        u8                      pio_mask;
        u8                      swdma_mask;