video: fbdev: Fix format string mismatch in wm8505fb.c
authorMasanari Iida <standby24x7@gmail.com>
Tue, 29 Apr 2014 12:21:54 +0000 (21:21 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 30 Apr 2014 08:24:40 +0000 (11:24 +0300)
Fix format string mismatch in contrast_show().

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/wm8505fb.c

index 537d199..d2fafbb 100644 (file)
@@ -162,7 +162,7 @@ static ssize_t contrast_show(struct device *dev,
        struct fb_info *info = dev_get_drvdata(dev);
        struct wm8505fb_info *fbi = to_wm8505fb_info(info);
 
-       return sprintf(buf, "%d\n", fbi->contrast);
+       return sprintf(buf, "%u\n", fbi->contrast);
 }
 
 static ssize_t contrast_store(struct device *dev,