Skip to content

Commit

Permalink
video/backlight: s6e63m0: Fix string type mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masanari Iida authored and Lee Jones committed May 7, 2014
1 parent 5131993 commit 39a6ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/backlight/s6e63m0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39a6ec2

Please sign in to comment.