From: Matt Turner Date: Fri, 23 Sep 2011 17:18:16 +0000 (-0400) Subject: drm/radeon: use DDC_ADDR instead of hard-coding it X-Git-Tag: v3.4-rc1~141^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=370a53f943c2efa08d1e145454571eccaecdcc19;p=profile%2Fcommon%2Fkernel-common.git drm/radeon: use DDC_ADDR instead of hard-coding it Signed-off-by: Matt Turner Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index 3265a7a..85bcfc8 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -26,6 +26,7 @@ #include #include "drmP.h" +#include "drm_edid.h" #include "radeon_drm.h" #include "radeon.h" #include "atom.h" @@ -45,13 +46,13 @@ bool radeon_ddc_probe(struct radeon_connector *radeon_connector) int ret; struct i2c_msg msgs[] = { { - .addr = 0x50, + .addr = DDC_ADDR, .flags = 0, .len = 1, .buf = &out, }, { - .addr = 0x50, + .addr = DDC_ADDR, .flags = I2C_M_RD, .len = 8, .buf = buf,