Commit 7c2bb53110f2c9a9c1c6a1a2699d8611c9292745

Authored by Daniel Vetter
1 parent 7d5e379989

drm/i915: s/any_enabled/!fallback/ in fbdev_initial_config

It started as a simple check whether anything is lit up, but now is't
used to driver the general fallback logic to the default output
configuration selector in the helper library. So rename it for more
clarity.

Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

drivers/gpu/drm/i915/intel_fbdev.c
... ... @@ -289,7 +289,7 @@
289 289 struct drm_device *dev = fb_helper->dev;
290 290 int i, j;
291 291 bool *save_enabled;
292   - bool any_enabled = false;
  292 + bool fallback = true;
293 293  
294 294 /*
295 295 * If the user specified any force options, just bail here
... ... @@ -347,7 +347,7 @@
347 347 */
348 348 for (j = 0; j < fb_helper->connector_count; j++) {
349 349 if (crtcs[j] == new_crtc) {
350   - any_enabled = false;
  350 + fallback = true;
351 351 goto out;
352 352 }
353 353 }
354 354  
... ... @@ -390,11 +390,11 @@
390 390 encoder->crtc->base.id,
391 391 modes[i]->name);
392 392  
393   - any_enabled = true;
  393 + fallback = false;
394 394 }
395 395  
396 396 out:
397   - if (!any_enabled) {
  397 + if (fallback) {
398 398 memcpy(enabled, save_enabled, dev->mode_config.num_connector);
399 399 kfree(save_enabled);
400 400 return false;