summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-dsi-cm.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-12-15 12:46:28 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-12-15 16:17:30 +0200
commit17d98080c4368837fc6b2d54117f120bd2444f99 (patch)
treebe8ef05e135b047a5785be976ce9b6adfa707018 /drivers/gpu/drm/panel/panel-dsi-cm.c
parent05ec6128935639d89e4c67436c3859b2e25ca912 (diff)
downloadlinux-17d98080c4368837fc6b2d54117f120bd2444f99.tar.bz2
drm/panel: panel-dsi-cm: use MIPI_DCS_GET_ERROR_COUNT_ON_DSI
Use the common MIPI_DCS_GET_ERROR_COUNT_ON_DSI define instead of driver's own. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-56-tomi.valkeinen@ti.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-dsi-cm.c')
-rw-r--r--drivers/gpu/drm/panel/panel-dsi-cm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.c b/drivers/gpu/drm/panel/panel-dsi-cm.c
index 21df1997e7d1..5c28f08b2288 100644
--- a/drivers/gpu/drm/panel/panel-dsi-cm.c
+++ b/drivers/gpu/drm/panel/panel-dsi-cm.c
@@ -26,7 +26,6 @@
#include <video/of_display_timing.h>
#include <video/videomode.h>
-#define DCS_READ_NUM_ERRORS 0x05
#define DCS_GET_ID1 0xda
#define DCS_GET_ID2 0xdb
#define DCS_GET_ID3 0xdc
@@ -224,7 +223,7 @@ static ssize_t num_dsi_errors_show(struct device *dev,
mutex_lock(&ddata->lock);
if (ddata->enabled)
- r = dsicm_dcs_read_1(ddata, DCS_READ_NUM_ERRORS, &errors);
+ r = dsicm_dcs_read_1(ddata, MIPI_DCS_GET_ERROR_COUNT_ON_DSI, &errors);
mutex_unlock(&ddata->lock);