summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/chromeos_laptop.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-04-24 22:17:19 +0300
committerBjorn Helgaas <bhelgaas@google.com>2019-04-30 00:13:06 +0300
commit3b9f900fa0636b7b530e517b4fbefa6cc5819f52 (patch)
treed316ef3aedc6c0358137611f9a622cbfb7eeab82 /drivers/platform/chrome/chromeos_laptop.c
parentd4a62ea411f98be6f7ffdeb339eca901f3d6472b (diff)
downloadlinux-3b9f900fa0636b7b530e517b4fbefa6cc5819f52.tar.xz
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/chromeos_laptop.c')
-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)