projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5131993
)
video/backlight: s6e63m0: Fix string type mismatch
author
Masanari Iida
<standby24x7@gmail.com>
Thu, 24 Apr 2014 15:47:16 +0000
(
00:47
+0900)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 7 May 2014 10:12:51 +0000
(11:12 +0100)
Fix string type mismatch in s6e63m0_sysfs_show_gamma_table().
gamma_table_count is defined as unsigned int.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Acked-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/s6e63m0.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/s6e63m0.c
b/drivers/video/backlight/s6e63m0.c
index 510a1bcf76f11d95a5d936099846abc5c4c49bdf..2d6d48196c6d09f385a54c80a0ff1692a99351c5 100644
(file)
--- a/
drivers/video/backlight/s6e63m0.c
+++ b/
drivers/video/backlight/s6e63m0.c
@@
-703,7
+703,7
@@
static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,
struct s6e63m0 *lcd = dev_get_drvdata(dev);
char temp[3];
- sprintf(temp, "%
d
\n", lcd->gamma_table_count);
+ sprintf(temp, "%
u
\n", lcd->gamma_table_count);
strcpy(buf, temp);
return strlen(buf);