drm/xe/hwmon: Update xe_hwmon_get_reg to return struct xe_reg
authorKarthik Poosa <karthik.poosa@intel.com>
Fri, 5 Apr 2024 13:01:25 +0000 (18:31 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 9 Apr 2024 16:57:44 +0000 (09:57 -0700)
commita50b794c924352603eb37ec5a279a19907fe2587
treef2b0afffe16fc7816c2aef994aa716aed1e3069a
parentb39c7056d01be638523ef9b4bfb5b60337ba08fb
drm/xe/hwmon: Update xe_hwmon_get_reg to return struct xe_reg

Return struct xe_reg instead of reg.raw from xe_hwmon_get_reg
to have abstracted usage of struct xe_reg.

v2:
 - Use xe_reg_is_valid function instead of XE_REG_IS_VALID macro
   as it is removed.

Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Suggested-by: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Badal Nilawar <badal.nilawar@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240405130127.1392426-3-karthik.poosa@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_hwmon.c