drm/dsi: Use mipi_dsi_device_register_full() for DSI device creation
authorArchit Taneja <architt@codeaurora.org>
Fri, 12 Feb 2016 09:18:31 +0000 (14:48 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Mar 2016 16:00:18 +0000 (17:00 +0100)
commitc63ae8a9686bb8c87154a31dc5ebadbda778a8e5
treec417cd6f3c7fab96c46e01bf5091a918611b458a
parentfc903ebd50d0396b5de1ff614a009c2ddcb3222c
drm/dsi: Use mipi_dsi_device_register_full() for DSI device creation

Use mipi_dsi_device_register_full() for device creation. This takes in
a struct mipi_dsi_device_info as a template to populate the DSI device
information.

The reason to introduce this is to have a way to create DSI devices not
available via DT. Drivers that want to create a DSI device can populate
a struct mipi_dsi_device_info and call this function. For DSI devices
available via DT, of_mipi_dsi_device_add() is used as before, but this
now calls mipi_dsi_device_register_full() internally.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h