Commit d1f9b39
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>1 parent 408599e commit d1f9b39
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6257 | 6257 | | |
6258 | 6258 | | |
6259 | 6259 | | |
6260 | | - | |
6261 | | - | |
| 6260 | + | |
6262 | 6261 | | |
6263 | 6262 | | |
6264 | 6263 | | |
| |||
6330 | 6329 | | |
6331 | 6330 | | |
6332 | 6331 | | |
6333 | | - | |
| 6332 | + | |
6334 | 6333 | | |
6335 | 6334 | | |
6336 | 6335 | | |
| |||
0 commit comments