Commit 17d98080 authored by Tomi Valkeinen's avatar Tomi Valkeinen

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-56-tomi.valkeinen@ti.com
parent 05ec6128
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <video/of_display_timing.h> #include <video/of_display_timing.h>
#include <video/videomode.h> #include <video/videomode.h>
#define DCS_READ_NUM_ERRORS 0x05
#define DCS_GET_ID1 0xda #define DCS_GET_ID1 0xda
#define DCS_GET_ID2 0xdb #define DCS_GET_ID2 0xdb
#define DCS_GET_ID3 0xdc #define DCS_GET_ID3 0xdc
...@@ -224,7 +223,7 @@ static ssize_t num_dsi_errors_show(struct device *dev, ...@@ -224,7 +223,7 @@ static ssize_t num_dsi_errors_show(struct device *dev,
mutex_lock(&ddata->lock); mutex_lock(&ddata->lock);
if (ddata->enabled) 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); mutex_unlock(&ddata->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment