[Intel-xe] [PATCH v2 0/1] Turn display finalizers into static functions

Gustavo Sousa gustavo.sousa at intel.com
Mon Sep 11 19:47:11 UTC 2023


Finalizer counterparts of display initializers are registered with
drmm_add_action_or_reset(). Since there are no other explicit users of
them outside of xe_display.c, let's turn them into static functions.

While at it, since this is a fixup patch, also do other cleanups
suggested by Lucas:

    * s/xe_display_modset_driver_remove/xe_display_driver_remove/

    * Remove the unused xe_display_enable()

    * s,xe_display_unlink,xe_display_fini,

      The original suggestion for the above was to replace with
      xe_display_shutdown, but I went with xe_display_fini to be
      consistent with the other "stepped" display finalizers.

    * Group functions in the header by namespaces.

v2:
  - Add more cleanups. (Lucas)

Signed-off-by: Gustavo Sousa <gustavo.sousa at intel.com>

Gustavo Sousa (1):
  fixup! drm/xe/display: Implement display support

 drivers/gpu/drm/xe/xe_device.c  |  8 ++++----
 drivers/gpu/drm/xe/xe_display.c | 10 +++++-----
 drivers/gpu/drm/xe/xe_display.h | 33 ++++++---------------------------
 3 files changed, 15 insertions(+), 36 deletions(-)

-- 
2.42.0



More information about the Intel-xe mailing list