diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2016-07-08 12:54:00 +0200 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:52:12 +0900 |
commit | 64f5c996bdb6651c894f4a08f512f0ee655ecd99 (patch) | |
tree | 95a3275a4d9576cc26a94e23f3577db7c6bdf051 /drivers/gpu/drm | |
parent | b76eeb0e491d3e840eea552903630f87cf148752 (diff) |
drm/panel/s6e3ha2: fix s6e3ha2_clear_error
The purpose of s6e3ha2_clear_error is to clear ctx->error and return
cleaned value to caller.
Change-Id: I5cb0cd93acc91463ad72d0eab45a302dd26a72e5
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/panel/panel-s6e3ha2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c index 4853d450ec2b..95d76525a055 100644 --- a/drivers/gpu/drm/panel/panel-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c @@ -303,9 +303,12 @@ static inline struct s6e3ha2 *panel_to_s6e3ha2(struct drm_panel *panel) return container_of(panel, struct s6e3ha2, panel); } -static void s6e3ha2_clear_error(struct s6e3ha2 *ctx) +static int s6e3ha2_clear_error(struct s6e3ha2 *ctx) { + int ret = ctx->error; + ctx->error = 0; + return ret; } static void s6e3ha2_dcs_write(struct s6e3ha2 *ctx, const u8 cmd, |