diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-04 14:10:32 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-02-07 22:54:28 -0500 |
commit | 9fe0423eac2c0781a3ece8779b086acd3e76f2c8 (patch) | |
tree | 8887017322c28d185cb417b10f91b8baa47040db /drivers/gpu/drm/drm_pci.c | |
parent | 03f6509df9218c760ae74f41a609233220d33f19 (diff) |
drm/pci: Use the standard #defines for PCIe Link Capability bits
Use the standard #defines rather than bare numbers for the PCIe Link
Capabilities speed bits.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r-- | drivers/gpu/drm/drm_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 754bc96e10c7..11c8adde40b0 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c | |||
@@ -504,9 +504,9 @@ int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask) | |||
504 | if (lnkcap2 & PCI_EXP_LNKCAP2_SLS_8_0GB) | 504 | if (lnkcap2 & PCI_EXP_LNKCAP2_SLS_8_0GB) |
505 | *mask |= DRM_PCIE_SPEED_80; | 505 | *mask |= DRM_PCIE_SPEED_80; |
506 | } else { | 506 | } else { |
507 | if (lnkcap & 1) | 507 | if (lnkcap & PCI_EXP_LNKCAP_SLS_2_5GB) |
508 | *mask |= DRM_PCIE_SPEED_25; | 508 | *mask |= DRM_PCIE_SPEED_25; |
509 | if (lnkcap & 2) | 509 | if (lnkcap & PCI_EXP_LNKCAP_SLS_5_0GB) |
510 | *mask |= DRM_PCIE_SPEED_50; | 510 | *mask |= DRM_PCIE_SPEED_50; |
511 | } | 511 | } |
512 | 512 | ||