summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/ili9225.c
diff options
context:
space:
mode:
authorNoralf Trønnes2018-01-10 19:59:36 +0100
committerNoralf Trønnes2018-01-15 15:10:28 +0100
commit22edc8d38ba5e912d0fd0d4d23ed268ae152c5ee (patch)
tree3643c47c3aefd92e20f1b3cfa9fe52f90b1bad28 /drivers/gpu/drm/tinydrm/ili9225.c
parentdrm/tinydrm/mi0283qt: Remove ili9341.h (diff)
downloadkernel-qcow2-linux-22edc8d38ba5e912d0fd0d4d23ed268ae152c5ee.tar.gz
kernel-qcow2-linux-22edc8d38ba5e912d0fd0d4d23ed268ae152c5ee.tar.xz
kernel-qcow2-linux-22edc8d38ba5e912d0fd0d4d23ed268ae152c5ee.zip
drm/tinydrm/mipi-dbi: Add mipi_dbi_enable_flush()
Add and use a function for enabling, flushing and turning on backlight. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: David Lechner <david@lechnology.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180110185940.53841-4-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/tinydrm/ili9225.c')
-rw-r--r--drivers/gpu/drm/tinydrm/ili9225.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tinydrm/ili9225.c b/drivers/gpu/drm/tinydrm/ili9225.c
index c0cf49849302..a0759502b81a 100644
--- a/drivers/gpu/drm/tinydrm/ili9225.c
+++ b/drivers/gpu/drm/tinydrm/ili9225.c
@@ -180,7 +180,6 @@ static void ili9225_pipe_enable(struct drm_simple_display_pipe *pipe,
{
struct tinydrm_device *tdev = pipe_to_tinydrm(pipe);
struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev);
- struct drm_framebuffer *fb = pipe->plane.fb;
struct device *dev = tdev->drm->dev;
int ret;
u8 am_id;
@@ -269,10 +268,7 @@ static void ili9225_pipe_enable(struct drm_simple_display_pipe *pipe,
ili9225_command(mipi, ILI9225_DISPLAY_CONTROL_1, 0x1017);
- mipi->enabled = true;
-
- if (fb)
- fb->funcs->dirty(fb, NULL, 0, 0, NULL, 0);
+ mipi_dbi_enable_flush(mipi);
}
static void ili9225_pipe_disable(struct drm_simple_display_pipe *pipe)