summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-04-24 21:17:19 +0200
committerBjorn Helgaas <bhelgaas@google.com>2019-04-29 23:13:06 +0200
commit3b9f900fa0636b7b530e517b4fbefa6cc5819f52 (patch)
treed316ef3aedc6c0358137611f9a622cbfb7eeab82 /drivers/platform/chrome
parentstmmac: pci: Use pci_dev_id() helper (diff)
downloadlinux-3b9f900fa0636b7b530e517b4fbefa6cc5819f52.tar.xz
linux-3b9f900fa0636b7b530e517b4fbefa6cc5819f52.zip
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>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r--drivers/platform/chrome/chromeos_laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
index 24326eecd787..7abbb6167766 100644
--- a/drivers/platform/chrome/chromeos_laptop.c
+++ b/drivers/platform/chrome/chromeos_laptop.c
@@ -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)