diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2019-02-10 16:10:34 +0300 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2019-02-21 14:22:08 +0300 |
commit | 4f83479891430556dbe287d465ea611f2f49e82e (patch) | |
tree | 08560d79da5297687b99f0d6675a9e42318759be /drivers/gpu/drm/tinydrm/ili9341.c | |
parent | d0a516347688eb031902852aaa7f5e72ee1db3c8 (diff) | |
download | linux-4f83479891430556dbe287d465ea611f2f49e82e.tar.xz |
drm/tinydrm/mipi-dbi: Add drm_to_mipi_dbi()
Add a function to derive mipi_dbi from drm_device now that tinydrm_device
is going away.
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190210131039.52664-8-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/tinydrm/ili9341.c')
-rw-r--r-- | drivers/gpu/drm/tinydrm/ili9341.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tinydrm/ili9341.c b/drivers/gpu/drm/tinydrm/ili9341.c index 87400a970c1a..3b7565a6311e 100644 --- a/drivers/gpu/drm/tinydrm/ili9341.c +++ b/drivers/gpu/drm/tinydrm/ili9341.c @@ -53,8 +53,7 @@ static void yx240qv29_enable(struct drm_simple_display_pipe *pipe, struct drm_crtc_state *crtc_state, struct drm_plane_state *plane_state) { - struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); - struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); + struct mipi_dbi *mipi = drm_to_mipi_dbi(pipe->crtc.dev); u8 addr_mode; int ret; |