summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2014-04-25 00:47:16 +0900
committerLee Jones <lee.jones@linaro.org>2014-05-07 11:12:51 +0100
commit39a6ec28bdc1385d29d9cbd4a9b385230b3cc755 (patch)
treec3e0867b8c2f312441422802b7c02f04f698142d /drivers/video
parent513199368aa16758088385e17284a6dacad3f869 (diff)
downloadop-kernel-dev-39a6ec28bdc1385d29d9cbd4a9b385230b3cc755.zip
op-kernel-dev-39a6ec28bdc1385d29d9cbd4a9b385230b3cc755.tar.gz
video/backlight: s6e63m0: Fix string type mismatch
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/s6e63m0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c
index 510a1bc..2d6d481 100644
--- 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);
OpenPOWER on IntegriCloud