• Archit Taneja's avatar
    drm/dsi: Try to match non-DT DSI devices · bf4363ce
    Archit Taneja authored
    Add a device name field in struct mipi_dsi_device. This name is not the
    same as the device name (which is of the format "hostname.reg"). When
    the device is created via DT, this name is set to the modalias string.
    In the non-DT case, the driver creating the DSI device provides the
    name by populating a field in struct mipi_dsi_device_info.
    
    Matching for DT case would be as it was before. For the non-DT case, we
    compare the device and driver names. Other buses (like I2C/SPI) perform
    a non-DT match by comparing the device name and entries in the driver's
    id_table. Such a mechanism isn't used for the DSI bus.
    Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    bf4363ce
drm_mipi_dsi.c 25.1 KB