projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe8c77
)
drm/panel: ld9040: Fix build warnings on 64-bit
author
Thierry Reding
<
[email protected]
>
Fri, 7 Nov 2014 13:41:05 +0000
(14:41 +0100)
committer
Thierry Reding
<
[email protected]
>
Fri, 7 Nov 2014 14:40:35 +0000
(15:40 +0100)
The %* format specifier expects an integer, which works fine with size_t
arguments on 32-bit because the types match. However on 64-bit, size_t
is typedef'd to unsigned long and will cause a build warning.
Signed-off-by: Thierry Reding <
[email protected]
>
drivers/gpu/drm/panel/panel-ld9040.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-ld9040.c
b/drivers/gpu/drm/panel/panel-ld9040.c
index dd1d3f2e624e6ebad0ac9ef1d83d5b14e305de5b..08cf2c588c3df3d4555f72d62d482b51098e5f0e 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-ld9040.c
+++ b/
drivers/gpu/drm/panel/panel-ld9040.c
@@
-145,7
+145,7
@@
static void ld9040_dcs_write(struct ld9040 *ctx, const u8 *data, size_t len)
if (ctx->error < 0 || len == 0)
return;
- dev_dbg(ctx->dev, "writing dcs seq: %*ph\n", len, data);
+ dev_dbg(ctx->dev, "writing dcs seq: %*ph\n",
(int)
len, data);
ret = ld9040_spi_write_word(ctx, *data);
while (!ret && --len) {
@@
-154,8
+154,8
@@
static void ld9040_dcs_write(struct ld9040 *ctx, const u8 *data, size_t len)
}
if (ret) {
- dev_err(ctx->dev, "error %d writing dcs seq: %*ph\n", ret,
len,
- data);
+ dev_err(ctx->dev, "error %d writing dcs seq: %*ph\n", ret,
+
(int)len,
data);
ctx->error = ret;
}