Skip to content

Commit

Permalink
ssb: trivial: use u8 for chip_rev (it's mask is 0xF)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Apr 4, 2011
1 parent 832fd35 commit ce57d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/ssb/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
} else {
if (bus->bustype == SSB_BUSTYPE_PCI) {
bus->chip_id = pcidev_to_chipid(bus->host_pci);
pci_read_config_word(bus->host_pci, PCI_REVISION_ID,
pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
&bus->chip_rev);
bus->chip_package = 0;
} else {
Expand Down
2 changes: 1 addition & 1 deletion include/linux/ssb/ssb.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ struct ssb_bus {

/* ID information about the Chip. */
u16 chip_id;
u16 chip_rev;
u8 chip_rev;
u16 sprom_offset;
u16 sprom_size; /* number of words in sprom */
u8 chip_package;
Expand Down

0 comments on commit ce57d9e

Please sign in to comment.