]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/dsi: rename MIPI_DCS_SET_PARTIAL_AREA to MIPI_DCS_SET_PARTIAL_ROWS
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Oct 2019 15:00:46 +0000 (17:00 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 7 Nov 2019 12:59:56 +0000 (14:59 +0200)
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
drivers/gpu/drm/tiny/st7586.c
include/video/mipi_display.h

index 3cc21a1b30c8dd9829f9cb1175d3b8e79d234555..060cc756194fb9280bb632b0bfcf2225ee6af063 100644 (file)
@@ -240,7 +240,7 @@ static void st7586_pipe_enable(struct drm_simple_display_pipe *pipe,
 
        mipi_dbi_command(dbi, ST7586_SET_DISP_DUTY, 0x7f);
        mipi_dbi_command(dbi, ST7586_SET_PART_DISP, 0xa0);
-       mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_AREA, 0x00, 0x00, 0x00, 0x77);
+       mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_ROWS, 0x00, 0x00, 0x00, 0x77);
        mipi_dbi_command(dbi, MIPI_DCS_EXIT_INVERT_MODE);
 
        msleep(100);
index 928f8c4b66585eaed11240809d16cade0f95c5af..b6d8b874233f8ec2c567a287808a7f60b11903f8 100644 (file)
@@ -108,7 +108,7 @@ enum {
        MIPI_DCS_WRITE_MEMORY_START     = 0x2C,
        MIPI_DCS_WRITE_LUT              = 0x2D,
        MIPI_DCS_READ_MEMORY_START      = 0x2E,
-       MIPI_DCS_SET_PARTIAL_AREA       = 0x30,
+       MIPI_DCS_SET_PARTIAL_ROWS       = 0x30,         /* MIPI DCS 1.02 - MIPI_DCS_SET_PARTIAL_AREA before that */
        MIPI_DCS_SET_PARTIAL_COLUMNS    = 0x31,
        MIPI_DCS_SET_SCROLL_AREA        = 0x33,
        MIPI_DCS_SET_TEAR_OFF           = 0x34,