disp: msm: dsi: fix physical size truncation of large panel
Panel's physical width/height larger than 255mm is getting truncated due to type conversion into smaller type. Change-Id: I826fb2db542146c07d8379951563430b7da8288c Signed-off-by: Rajeev Nandan <rajeevny@codeaurora.org> Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
1b9802c099
commit
4f53bc1569
@@ -825,8 +825,8 @@ int dsi_connector_get_modes(struct drm_connector *connector, void *data,
|
||||
struct drm_display_mode drm_mode;
|
||||
struct dsi_display *display = data;
|
||||
struct edid edid;
|
||||
u8 width_mm = connector->display_info.width_mm;
|
||||
u8 height_mm = connector->display_info.height_mm;
|
||||
unsigned int width_mm = connector->display_info.width_mm;
|
||||
unsigned int height_mm = connector->display_info.height_mm;
|
||||
const u8 edid_buf[EDID_LENGTH] = {
|
||||
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x44, 0x6D,
|
||||
0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1B, 0x10, 0x01, 0x03,
|
||||
|
Reference in New Issue
Block a user