Skip to content

Commit

Permalink
drm/radeon: use DDC_ADDR instead of hard-coding it
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Matt Turner authored and Dave Airlie committed Mar 21, 2012
1 parent ef61d3d commit 370a53f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/radeon/radeon_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/export.h>

#include "drmP.h"
#include "drm_edid.h"
#include "radeon_drm.h"
#include "radeon.h"
#include "atom.h"
Expand All @@ -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,
Expand Down

0 comments on commit 370a53f

Please sign in to comment.