[PATCH 5/5] drm/xe: Use a NULL pointer instead of 0.
Francois Dugast
francois.dugast at intel.com
Wed Jan 17 13:59:29 UTC 2024
On Wed, Jan 17, 2024 at 02:40:48PM +0100, Thomas Hellström wrote:
> The last argument of xe_pcode_read() is a pointer. Use NULL instead of 0.
>
> Fixes: 92d44a422d0d ("drm/xe/hwmon: Expose card reactive critical power")
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Francois Dugast <francois.dugast at intel.com>
> ---
> drivers/gpu/drm/xe/xe_hwmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
> index 6ef2aa1eae8b..174ed2185481 100644
> --- a/drivers/gpu/drm/xe/xe_hwmon.c
> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
> @@ -419,7 +419,7 @@ static int xe_hwmon_pcode_read_i1(struct xe_gt *gt, u32 *uval)
>
> return xe_pcode_read(gt, PCODE_MBOX(PCODE_POWER_SETUP,
> POWER_SETUP_SUBCOMMAND_READ_I1, 0),
> - uval, 0);
> + uval, NULL);
> }
>
> static int xe_hwmon_pcode_write_i1(struct xe_gt *gt, u32 uval)
> --
> 2.43.0
>
More information about the Intel-xe
mailing list