diff options
author | Matt Turner <mattst88@gmail.com> | 2011-09-23 13:18:40 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-21 06:20:38 -0400 |
commit | 5466c7b1683a23dbbcfb7ee4a71c4f23886001c7 (patch) | |
tree | 985c7779804bf05e0993ae035729ff98b05f62af /drivers | |
parent | 370a53f943c2efa08d1e145454571eccaecdcc19 (diff) |
drm/i915: use DDC_ADDR instead of hard-coding it
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_modes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c index 2978a3f61b58..d1928e79d9b6 100644 --- a/drivers/gpu/drm/i915/intel_modes.c +++ b/drivers/gpu/drm/i915/intel_modes.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/fb.h> | 28 | #include <linux/fb.h> |
29 | #include <drm/drm_edid.h> | 29 | #include <drm/drm_edid.h> |
30 | #include "drmP.h" | 30 | #include "drmP.h" |
31 | #include "drm_edid.h" | ||
31 | #include "intel_drv.h" | 32 | #include "intel_drv.h" |
32 | #include "i915_drv.h" | 33 | #include "i915_drv.h" |
33 | 34 | ||
@@ -42,13 +43,13 @@ bool intel_ddc_probe(struct intel_encoder *intel_encoder, int ddc_bus) | |||
42 | u8 buf[2]; | 43 | u8 buf[2]; |
43 | struct i2c_msg msgs[] = { | 44 | struct i2c_msg msgs[] = { |
44 | { | 45 | { |
45 | .addr = 0x50, | 46 | .addr = DDC_ADDR, |
46 | .flags = 0, | 47 | .flags = 0, |
47 | .len = 1, | 48 | .len = 1, |
48 | .buf = out_buf, | 49 | .buf = out_buf, |
49 | }, | 50 | }, |
50 | { | 51 | { |
51 | .addr = 0x50, | 52 | .addr = DDC_ADDR, |
52 | .flags = I2C_M_RD, | 53 | .flags = I2C_M_RD, |
53 | .len = 1, | 54 | .len = 1, |
54 | .buf = buf, | 55 | .buf = buf, |