Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce57d9e6 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville
Browse files

ssb: trivial: use u8 for chip_rev (it's mask is 0xF)

parent 832fd35a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -307,7 +307,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
	} else {
	} else {
		if (bus->bustype == SSB_BUSTYPE_PCI) {
		if (bus->bustype == SSB_BUSTYPE_PCI) {
			bus->chip_id = pcidev_to_chipid(bus->host_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_rev);
			bus->chip_package = 0;
			bus->chip_package = 0;
		} else {
		} else {
+1 −1
Original line number Original line Diff line number Diff line
@@ -308,7 +308,7 @@ struct ssb_bus {


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