]> git.itanic.dy.fi Git - linux-stable/commit
PCI: Use FIELD_GET() to extract Link Width
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 19 Sep 2023 12:56:46 +0000 (15:56 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 18 Oct 2023 01:10:31 +0000 (20:10 -0500)
commitd1f9b39da4a5347150246871325190018cda8cb3
treea34c1e3cb38fa7ae51f6e4925c43b0976baa6cd3
parent408599ec561ad5862cda4f107626009f6fa97a74
PCI: Use FIELD_GET() to extract Link Width

Use FIELD_GET() to extract PCIe Negotiated and Maximum Link Width fields
instead of custom masking and shifting.

Link: https://lore.kernel.org/r/20230919125648.1920-7-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[bhelgaas: drop duplicate include of <linux/bitfield.h>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pci-sysfs.c
drivers/pci/pci.c