]> Git Repo - linux.git/commitdiff
video/backlight: s6e63m0: Fix string type mismatch
authorMasanari Iida <[email protected]>
Thu, 24 Apr 2014 15:47:16 +0000 (00:47 +0900)
committerLee Jones <[email protected]>
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 <[email protected]>
Acked-by: Bryan Wu <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
drivers/video/backlight/s6e63m0.c

index 510a1bcf76f11d95a5d936099846abc5c4c49bdf..2d6d48196c6d09f385a54c80a0ff1692a99351c5 100644 (file)
@@ -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);
This page took 0.056752 seconds and 4 git commands to generate.