summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/tests/xe_migrate.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-04-01 11:51:45 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:31:31 +0300
commitd19ad0e80ebe3da48dc8122d6beca9d3d35df454 (patch)
tree944aaca02863b8fd9831c9d23ea97acd81ebe055 /drivers/gpu/drm/xe/tests/xe_migrate.c
parentb73d520b3d0ff559da7e15a49ef12a591c61105a (diff)
downloadlinux-d19ad0e80ebe3da48dc8122d6beca9d3d35df454.tar.xz
drm/xe: Extract function to initialize xe->info
Extract the part setting up from xe->info from xe_pci_probe() into its own function. This pairs nicely with the display counterpart, avoids info initialization to be placed elsewhere and helps future improvements to build fake devices for tests. While at it, normalize the names a little bit: the _get() suffix may be mistaken by lock-related operation, so rename the function to "find_subplatform()". Also rename the variable to subplatform_desc to make it easier to understand, even if longer. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230401085151.1786204-2-lucas.demarchi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/tests/xe_migrate.c')
0 files changed, 0 insertions, 0 deletions