@@ -1192,8 +1192,8 @@ DEFINE_SHOW_ATTRIBUTE(i915_lpsp_capability);
1192
1192
1193
1193
static int i915_dsc_fec_support_show (struct seq_file * m , void * data )
1194
1194
{
1195
- struct drm_connector * connector = m -> private ;
1196
- struct drm_device * dev = connector -> dev ;
1195
+ struct intel_connector * connector = to_intel_connector ( m -> private ) ;
1196
+ struct drm_i915_private * i915 = to_i915 ( connector -> base . dev ) ;
1197
1197
struct drm_crtc * crtc ;
1198
1198
struct intel_dp * intel_dp ;
1199
1199
struct drm_modeset_acquire_ctx ctx ;
@@ -1205,7 +1205,7 @@ static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
1205
1205
1206
1206
do {
1207
1207
try_again = false;
1208
- ret = drm_modeset_lock (& dev -> mode_config .connection_mutex ,
1208
+ ret = drm_modeset_lock (& i915 -> drm . mode_config .connection_mutex ,
1209
1209
& ctx );
1210
1210
if (ret ) {
1211
1211
if (ret == - EDEADLK && !drm_modeset_backoff (& ctx )) {
@@ -1214,8 +1214,8 @@ static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
1214
1214
}
1215
1215
break ;
1216
1216
}
1217
- crtc = connector -> state -> crtc ;
1218
- if (connector -> status != connector_status_connected || !crtc ) {
1217
+ crtc = connector -> base . state -> crtc ;
1218
+ if (connector -> base . status != connector_status_connected || !crtc ) {
1219
1219
ret = - ENODEV ;
1220
1220
break ;
1221
1221
}
@@ -1230,7 +1230,7 @@ static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
1230
1230
} else if (ret ) {
1231
1231
break ;
1232
1232
}
1233
- intel_dp = intel_attached_dp (to_intel_connector ( connector ) );
1233
+ intel_dp = intel_attached_dp (connector );
1234
1234
crtc_state = to_intel_crtc_state (crtc -> state );
1235
1235
seq_printf (m , "DSC_Enabled: %s\n" ,
1236
1236
str_yes_no (crtc_state -> dsc .compression_enable ));
0 commit comments