]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/mipi_dsi: refactor device creation
authorArchit Taneja <architt@codeaurora.org>
Wed, 19 Aug 2015 10:44:09 +0000 (16:14 +0530)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Aug 2017 10:51:19 +0000 (12:51 +0200)
commitb14cd66af8ced4875ece3fa21184d03f4d992197
tree691b9c67f07433b630b5c781374b9e262de1b0a1
parent7522ed9d643d6f217251de0edd4a5ddd81757dd8
drm/mipi_dsi: refactor device creation

Create a helper function mipi_dsi_device_new which takes in struct
mipi_dsi_device_info and the mipi_dsi_host. This will be called by
of_mipi_dsi_device_add.

Instead of calling device_initialize and device_add separately, merge
it into a single device_register call. This will remove the need of
having two separate funcs mipi_dsi_device_alloc and mipi_dsi_device_add.

The reason for creating mipi_dsi_device_new is that it can also be used
as a standalone way for creating a dsi device that isn't available via
DT.

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