forked from Minki/linux
platform/chrome: chromeos_laptop: use pci_dev_id() helper
Use new helper pci_dev_id() to simplify the code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-By: Benson Leung <bleung@chromium.org>
This commit is contained in:
parent
d4a62ea411
commit
3b9f900fa0
@ -125,7 +125,7 @@ static bool chromeos_laptop_match_adapter_devid(struct device *dev, u32 devid)
|
||||
return false;
|
||||
|
||||
pdev = to_pci_dev(dev);
|
||||
return devid == PCI_DEVID(pdev->bus->number, pdev->devfn);
|
||||
return devid == pci_dev_id(pdev);
|
||||
}
|
||||
|
||||
static void chromeos_laptop_check_adapter(struct i2c_adapter *adapter)
|
||||
|
Loading…
Reference in New Issue
Block a user