~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/gpu/drm/i915/intel_panel.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
        dev_priv->backlight_level = intel_panel_get_backlight(dev);
281
281
        dev_priv->backlight_enabled = dev_priv->backlight_level != 0;
282
282
}
 
283
 
 
284
enum drm_connector_status
 
285
intel_panel_detect(struct drm_device *dev)
 
286
{
 
287
#if 0
 
288
        struct drm_i915_private *dev_priv = dev->dev_private;
 
289
#endif
 
290
 
 
291
        if (i915_panel_ignore_lid)
 
292
                return i915_panel_ignore_lid > 0 ?
 
293
                        connector_status_connected :
 
294
                        connector_status_disconnected;
 
295
 
 
296
        /* opregion lid state on HP 2540p is wrong at boot up,
 
297
         * appears to be either the BIOS or Linux ACPI fault */
 
298
#if 0
 
299
        /* Assume that the BIOS does not lie through the OpRegion... */
 
300
        if (dev_priv->opregion.lid_state)
 
301
                return ioread32(dev_priv->opregion.lid_state) & 0x1 ?
 
302
                        connector_status_connected :
 
303
                        connector_status_disconnected;
 
304
#endif
 
305
 
 
306
        return connector_status_unknown;
 
307
}