drm/i915: use DDC_ADDR instead of hard-coding it
authorMatt Turner <mattst88@gmail.com>
Fri, 23 Sep 2011 17:18:40 +0000 (13:18 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Mar 2012 10:20:38 +0000 (10:20 +0000)
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/intel_modes.c

index 2978a3f..d1928e7 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/fb.h>
 #include <drm/drm_edid.h>
 #include "drmP.h"
+#include "drm_edid.h"
 #include "intel_drv.h"
 #include "i915_drv.h"
 
@@ -42,13 +43,13 @@ bool intel_ddc_probe(struct intel_encoder *intel_encoder, int ddc_bus)
        u8 buf[2];
        struct i2c_msg msgs[] = {
                {
-                       .addr = 0x50,
+                       .addr = DDC_ADDR,
                        .flags = 0,
                        .len = 1,
                        .buf = out_buf,
                },
                {
-                       .addr = 0x50,
+                       .addr = DDC_ADDR,
                        .flags = I2C_M_RD,
                        .len = 1,
                        .buf = buf,