]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Use bitfield instead of bool for struct pci_vpd_pci22.busy
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Feb 2016 20:04:07 +0000 (14:04 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Feb 2016 23:46:57 +0000 (17:46 -0600)
commitde9d2ee31d7532c8ec6283d49a36e1228f27dcfa
tree5548b4139c51808374221ee86d1a5f47a39ce409
parent3953a509f04fb0f844caa0b1940318955d447cf8
PCI: Use bitfield instead of bool for struct pci_vpd_pci22.busy

Make struct pci_vpd_pci22.busy a 1-bit field instead of a bool.  We intend
to add another flag, and two bitfields are cheaper than two bools.

Tested-by: Shane Seymour <shane.seymour@hpe.com>
Tested-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/pci/access.c