mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/xe/rpm: use to_xe_device() instead of container_of
Drop the dependency on display being a sub-struct of xe_device. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://lore.kernel.org/r/3528f2cd5965e97248c161b8aa25a9df69606a39.1746610601.git.jani.nikula@intel.com
This commit is contained in:
parent
db5302ae57
commit
5779b26aaf
|
|
@ -2,12 +2,13 @@
|
|||
/* Copyright © 2025 Intel Corporation */
|
||||
|
||||
#include "intel_display_rpm.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_device_types.h"
|
||||
#include "xe_pm.h"
|
||||
|
||||
static struct xe_device *display_to_xe(struct intel_display *display)
|
||||
{
|
||||
return container_of(display, struct xe_device, display);
|
||||
return to_xe_device(display->drm);
|
||||
}
|
||||
|
||||
struct ref_tracker *intel_display_rpm_get_raw(struct intel_display *display)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user