diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv04/tvnv04.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/tvnv04.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c index bf13db4e8631..cc4b208ce546 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c | |||
@@ -37,15 +37,18 @@ | |||
37 | 37 | ||
38 | #include <subdev/i2c.h> | 38 | #include <subdev/i2c.h> |
39 | 39 | ||
40 | static struct i2c_board_info nv04_tv_encoder_info[] = { | 40 | static struct nouveau_i2c_board_info nv04_tv_encoder_info[] = { |
41 | { | 41 | { |
42 | I2C_BOARD_INFO("ch7006", 0x75), | 42 | { |
43 | .platform_data = &(struct ch7006_encoder_params) { | 43 | I2C_BOARD_INFO("ch7006", 0x75), |
44 | CH7006_FORMAT_RGB24m12I, CH7006_CLOCK_MASTER, | 44 | .platform_data = &(struct ch7006_encoder_params) { |
45 | 0, 0, 0, | 45 | CH7006_FORMAT_RGB24m12I, CH7006_CLOCK_MASTER, |
46 | CH7006_SYNC_SLAVE, CH7006_SYNC_SEPARATED, | 46 | 0, 0, 0, |
47 | CH7006_POUT_3_3V, CH7006_ACTIVE_HSYNC | 47 | CH7006_SYNC_SLAVE, CH7006_SYNC_SEPARATED, |
48 | } | 48 | CH7006_POUT_3_3V, CH7006_ACTIVE_HSYNC |
49 | } | ||
50 | }, | ||
51 | 0 | ||
49 | }, | 52 | }, |
50 | { } | 53 | { } |
51 | }; | 54 | }; |
@@ -229,7 +232,8 @@ nv04_tv_create(struct drm_connector *connector, struct dcb_output *entry) | |||
229 | 232 | ||
230 | /* Run the slave-specific initialization */ | 233 | /* Run the slave-specific initialization */ |
231 | ret = drm_i2c_encoder_init(dev, to_encoder_slave(encoder), | 234 | ret = drm_i2c_encoder_init(dev, to_encoder_slave(encoder), |
232 | &port->adapter, &nv04_tv_encoder_info[type]); | 235 | &port->adapter, |
236 | &nv04_tv_encoder_info[type].dev); | ||
233 | if (ret < 0) | 237 | if (ret < 0) |
234 | goto fail_cleanup; | 238 | goto fail_cleanup; |
235 | 239 | ||