]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/guc: Add pc_to_ct() helper
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sun, 9 Jun 2024 18:19:30 +0000 (20:19 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 10 Jun 2024 10:41:40 +0000 (12:41 +0200)
commit7eea2580994b4eb266fd9aa60b1c913be4151925
treebd4ec8a604be567830d2d40f2370f820d9de96c9
parent3a3fc10cce3b6cc6ac252f3b6f5d750f0b1d735e
drm/xe/guc: Add pc_to_ct() helper

We are converting xe_guc_pc to xe_guc_ct few times already.
Add simple helper function to avoid code duplication.
While at it, simplify other helper functions and fix order
of local variables to match the guideline.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240609181931.1724-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_pc.c