diff options
| author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2026-09-04 19:05:27 +0200 |
|---|---|---|
| committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2026-09-11 19:52:10 +0200 |
| commit | e98e6b57dad5f7d072d85595d2138c84859bf5f0 (patch) | |
| tree | bdedcd898506eec5dba263596e13b9c589146990 | |
| parent | 3a7df8a43c783ed13bff8de9848fc179107727ea (diff) | |
| download | linux-next-e98e6b57dad5f7d072d85595d2138c84859bf5f0.tar.gz linux-next-e98e6b57dad5f7d072d85595d2138c84859bf5f0.zip | |
drm/xe: Drop redundant parameters from xe_info_init_early
We can now obtain the const pointers to struct xe_device_desc and
xe_subplatform_desc directly from the xe, no need to pass them as
explicit parameters.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20260904170531.516-4-michal.wajdeczko@intel.com
| -rw-r--r-- | drivers/gpu/drm/xe/tests/xe_pci.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/xe/xe_pci.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_pci.c b/drivers/gpu/drm/xe/tests/xe_pci.c index a0a08ee5f12b..ca833f1f3cce 100644 --- a/drivers/gpu/drm/xe/tests/xe_pci.c +++ b/drivers/gpu/drm/xe/tests/xe_pci.c @@ -393,7 +393,7 @@ done: if (err) return err; - xe_info_init_early(xe, desc, subplatform_desc, &probed_info); + xe_info_init_early(xe, &probed_info); xe_info_init(xe, &probed_info); return 0; diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 4fab47369c64..23edaf886d23 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -770,10 +770,10 @@ static int xe_probe_info_early(struct xe_device *xe, * passed to the driver at probe time from PCI ID table. */ static int xe_info_init_early(struct xe_device *xe, - const struct xe_device_desc *desc, - const struct xe_subplatform_desc *subplatform_desc, struct xe_probed_info *probed_info) { + const struct xe_subplatform_desc *subplatform_desc = xe->subplatform_desc; + const struct xe_device_desc *desc = xe->desc; int err; xe->info.devid = probed_info->devid; @@ -1221,7 +1221,7 @@ static int __xe_pci_probe(struct pci_dev *pdev, const struct xe_device_desc *des if (err) return err; - err = xe_info_init_early(xe, desc, subplatform_desc, &probed_info); + err = xe_info_init_early(xe, &probed_info); if (err) return err; |
