Commit 370a53f9 authored by Matt Turner's avatar Matt Turner Committed by Dave Airlie

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

Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ef61d3d8
......@@ -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"
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment