Skip to contentSkip to conversation

drm: remove unneeded redefinition of DDC_ADDR

PATCH New Matt Turner 1 participant 2 messages Sep 23, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: remove unneeded redefinition of DDC_ADDR

It's already defined in drm_edid.h.

---
 drivers/gpu/drm/drm_edid.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_edid.c +0 -1
index 7425e5c..9fa8316 100644
@@ -225,7 +225,6 @@ bool drm_edid_is_valid(struct edid *edid)
 }
 EXPORT_SYMBOL(drm_edid_is_valid);
 
-#define DDC_ADDR 0x50
 #define DDC_SEGMENT_ADDR 0x30
 /**
  * Get EDID information via I2C.
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 drm/radeon: use DDC_ADDR instead of hard-coding it

---
 drivers/gpu/drm/radeon/radeon_i2c.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_i2c.c +3 -2
index 6c111c1..37a6d38 100644
@@ -24,6 +24,7 @@
  *          Alex Deucher
  */
 #include "drmP.h"
+#include "drm_edid.h"
 #include "radeon_drm.h"
 #include "radeon.h"
 #include "atom.h"
@@ -39,13 +40,13 @@ bool radeon_ddc_probe(struct radeon_connector *radeon_connector, bool requires_e
 	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 = 1,
 			.buf = buf,
Signature · 1 line
1.7.3.4