Commit 5466c7b1 authored by Matt Turner's avatar Matt Turner Committed by Dave Airlie

drm/i915: 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 370a53f9
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/fb.h> #include <linux/fb.h>
#include <drm/drm_edid.h> #include <drm/drm_edid.h>
#include "drmP.h" #include "drmP.h"
#include "drm_edid.h"
#include "intel_drv.h" #include "intel_drv.h"
#include "i915_drv.h" #include "i915_drv.h"
...@@ -42,13 +43,13 @@ bool intel_ddc_probe(struct intel_encoder *intel_encoder, int ddc_bus) ...@@ -42,13 +43,13 @@ bool intel_ddc_probe(struct intel_encoder *intel_encoder, int ddc_bus)
u8 buf[2]; u8 buf[2];
struct i2c_msg msgs[] = { struct i2c_msg msgs[] = {
{ {
.addr = 0x50, .addr = DDC_ADDR,
.flags = 0, .flags = 0,
.len = 1, .len = 1,
.buf = out_buf, .buf = out_buf,
}, },
{ {
.addr = 0x50, .addr = DDC_ADDR,
.flags = I2C_M_RD, .flags = I2C_M_RD,
.len = 1, .len = 1,
.buf = buf, .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