File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
#include "intel_pmdemand.h"
16
16
#include "skl_watermark.h"
17
17
18
+ struct intel_pmdemand_state * to_intel_pmdemand_state (struct intel_global_state * obj_state )
19
+ {
20
+ return container_of (obj_state , struct intel_pmdemand_state , base );
21
+ }
22
+
18
23
static struct intel_global_state *
19
24
intel_pmdemand_duplicate_state (struct intel_global_obj * obj )
20
25
{
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ struct intel_pmdemand_state {
43
43
struct pmdemand_params params ;
44
44
};
45
45
46
- #define to_intel_pmdemand_state (global_state ) \
47
- container_of_const((global_state), struct intel_pmdemand_state, base)
46
+ struct intel_pmdemand_state * to_intel_pmdemand_state (struct intel_global_state * obj_state );
48
47
49
48
void intel_pmdemand_init_early (struct drm_i915_private * i915 );
50
49
int intel_pmdemand_init (struct drm_i915_private * i915 );
You can’t perform that action at this time.
0 commit comments