diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-04-24 11:47:16 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-05-07 06:12:51 -0400 |
commit | 39a6ec28bdc1385d29d9cbd4a9b385230b3cc755 (patch) | |
tree | c3e0867b8c2f312441422802b7c02f04f698142d /drivers/video/backlight/s6e63m0.c | |
parent | 513199368aa16758088385e17284a6dacad3f869 (diff) |
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/backlight/s6e63m0.c')
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 510a1bcf76f1..2d6d48196c6d 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, | |||
703 | struct s6e63m0 *lcd = dev_get_drvdata(dev); | 703 | struct s6e63m0 *lcd = dev_get_drvdata(dev); |
704 | char temp[3]; | 704 | char temp[3]; |
705 | 705 | ||
706 | sprintf(temp, "%d\n", lcd->gamma_table_count); | 706 | sprintf(temp, "%u\n", lcd->gamma_table_count); |
707 | strcpy(buf, temp); | 707 | strcpy(buf, temp); |
708 | 708 | ||
709 | return strlen(buf); | 709 | return strlen(buf); |