summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWambui Karuga <wambui.karugax@gmail.com>2019-12-30 22:56:09 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-01-01 19:53:50 +0100
commit1ce0d5162b98bf6120db1b259d0f0706e69f15fd (patch)
treeb5171cf7052513750fdbfb454fd174dbb927ed6a
parentefb4650885187425f1da96460e5d2a84650f861a (diff)
drm/panel: declare variable as __be16drm-misc-next-2020-01-02
Declare the temp variable as __be16 to address the following sparse warning: drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: warning: incorrect type in initializer (different base types) drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: expected unsigned short [unsigned] [usertype] temp drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: got restricted __be16 [usertype] <noident> Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191230195609.12386-1-wambui.karugax@gmail.com
-rw-r--r--drivers/gpu/drm/panel/panel-lg-lg4573.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c b/drivers/gpu/drm/panel/panel-lg-lg4573.c
index 20235ff0bbc4..b262b53dbd85 100644
--- a/drivers/gpu/drm/panel/panel-lg-lg4573.c
+++ b/drivers/gpu/drm/panel/panel-lg-lg4573.c
@@ -42,7 +42,7 @@ static int lg4573_spi_write_u16(struct lg4573 *ctx, u16 data)
struct spi_transfer xfer = {
.len = 2,
};
- u16 temp = cpu_to_be16(data);
+ __be16 temp = cpu_to_be16(data);
struct spi_message msg;
dev_dbg(ctx->panel.dev, "writing data: %x\n", data);