Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130079
b: refs/heads/master
c: 335041e
h: refs/heads/master
i:
  130077: c3a9b9e
  130075: ad5731b
  130071: 03c15a0
  130063: 6bd50a1
  130047: 1c6e33a
v: v3
  • Loading branch information
Jesse Barnes authored and Dave Airlie committed Jan 22, 2009
1 parent bc1398e commit 57fa3f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed2dd4b0cc1494c27478f4ea8452f68d2037a60c
refs/heads/master: 335041ed31d774391d9add49824d05e7d19d93e9
13 changes: 13 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,18 @@ static void intel_lvds_destroy(struct drm_connector *connector)
kfree(connector);
}

static int intel_lvds_set_property(struct drm_connector *connector,
struct drm_property *property,
uint64_t value)
{
struct drm_device *dev = connector->dev;

if (property == dev->mode_config.dpms_property && connector->encoder)
intel_lvds_dpms(connector->encoder, (uint32_t)(value & 0xf));

return 0;
}

static const struct drm_encoder_helper_funcs intel_lvds_helper_funcs = {
.dpms = intel_lvds_dpms,
.mode_fixup = intel_lvds_mode_fixup,
Expand All @@ -359,6 +371,7 @@ static const struct drm_connector_funcs intel_lvds_connector_funcs = {
.restore = intel_lvds_restore,
.detect = intel_lvds_detect,
.fill_modes = drm_helper_probe_single_connector_modes,
.set_property = intel_lvds_set_property,
.destroy = intel_lvds_destroy,
};

Expand Down

0 comments on commit 57fa3f2

Please sign in to comment.