Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205185
b: refs/heads/master
c: a1e09b6
h: refs/heads/master
i:
  205183: 2b2bbee
v: v3
  • Loading branch information
Francisco Jerez authored and Dave Airlie committed Aug 4, 2010
1 parent d3762bb commit b6d3346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fca3ec01e0b40cab82cac7745e154b01969e6219
refs/heads/master: a1e09b62592eb57e25f8d076ffa5b7bef18be812
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/drm_encoder_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
* &drm_encoder_slave. The @slave_funcs field will be initialized with
* the hooks provided by the slave driver.
*
* If @info->platform_data is non-NULL it will be used as the initial
* slave config.
*
* Returns 0 on success or a negative errno on failure, in particular,
* -ENODEV is returned when no matching driver is found.
*/
Expand Down Expand Up @@ -85,6 +88,10 @@ int drm_i2c_encoder_init(struct drm_device *dev,
if (err)
goto fail_unregister;

if (info->platform_data)
encoder->slave_funcs->set_config(&encoder->base,
info->platform_data);

return 0;

fail_unregister:
Expand Down

0 comments on commit b6d3346

Please sign in to comment.