Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52a081ef authored by Rajeev Nandan's avatar Rajeev Nandan
Browse files

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: default avatarRajeev Nandan <rajeevny@codeaurora.org>
parent 7d5a603a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -820,8 +820,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,