|
@@ -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.
|
|
|
*/
|
|
@@ -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:
|