mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
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>
This commit is contained in:
parent
513199368a
commit
39a6ec28bd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user