Skip to content

Commit 97ecec8

Browse files
committed
drm/dsi: rename MIPI_DCS_SET_PARTIAL_AREA to MIPI_DCS_SET_PARTIAL_ROWS
The DCS command has been named SET_PARTIAL_ROWS in the DCS spec since v1.02, for more than a decade. Rename the enumeration to match the spec. v2: add comment about the rename (David Lechner) Cc: David Lechner <david@lechnology.com> Cc: Vandita Kulkarni <vandita.kulkarni@intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191028150047.22048-4-jani.nikula@intel.com
1 parent 0676e24 commit 97ecec8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/tiny/st7586.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static void st7586_pipe_enable(struct drm_simple_display_pipe *pipe,
240240

241241
mipi_dbi_command(dbi, ST7586_SET_DISP_DUTY, 0x7f);
242242
mipi_dbi_command(dbi, ST7586_SET_PART_DISP, 0xa0);
243-
mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_AREA, 0x00, 0x00, 0x00, 0x77);
243+
mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_ROWS, 0x00, 0x00, 0x00, 0x77);
244244
mipi_dbi_command(dbi, MIPI_DCS_EXIT_INVERT_MODE);
245245

246246
msleep(100);

‎include/video/mipi_display.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ enum {
108108
MIPI_DCS_WRITE_MEMORY_START = 0x2C,
109109
MIPI_DCS_WRITE_LUT = 0x2D,
110110
MIPI_DCS_READ_MEMORY_START = 0x2E,
111-
MIPI_DCS_SET_PARTIAL_AREA = 0x30,
111+
MIPI_DCS_SET_PARTIAL_ROWS = 0x30, /* MIPI DCS 1.02 - MIPI_DCS_SET_PARTIAL_AREA before that */
112112
MIPI_DCS_SET_PARTIAL_COLUMNS = 0x31,
113113
MIPI_DCS_SET_SCROLL_AREA = 0x33,
114114
MIPI_DCS_SET_TEAR_OFF = 0x34,

0 commit comments

Comments
 (0)