Skip to content

Commit 03b72db

Browse files
author
Thomas Hellström
committed
drm/xe: Use a NULL pointer instead of 0.
The last argument of xe_pcode_read() is a pointer. Use NULL instead of 0. Fixes: 92d44a4 ("drm/xe/hwmon: Expose card reactive critical power") Cc: Rodrigo Vivi <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Reviewed-by: Francois Dugast <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 79f8eac) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 3213b80 commit 03b72db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_hwmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int xe_hwmon_pcode_read_i1(struct xe_gt *gt, u32 *uval)
419419

420420
return xe_pcode_read(gt, PCODE_MBOX(PCODE_POWER_SETUP,
421421
POWER_SETUP_SUBCOMMAND_READ_I1, 0),
422-
uval, 0);
422+
uval, NULL);
423423
}
424424

425425
static int xe_hwmon_pcode_write_i1(struct xe_gt *gt, u32 uval)

0 commit comments

Comments
 (0)