From patchwork Tue Apr 29 12:21:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masanari Iida X-Patchwork-Id: 4087261 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56E10BFF02 for ; Tue, 29 Apr 2014 12:22:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 853AC2018E for ; Tue, 29 Apr 2014 12:22:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B6A620171 for ; Tue, 29 Apr 2014 12:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933970AbaD2MWm (ORCPT ); Tue, 29 Apr 2014 08:22:42 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:65472 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933447AbaD2MWl (ORCPT ); Tue, 29 Apr 2014 08:22:41 -0400 Received: by mail-pd0-f171.google.com with SMTP id r10so105432pdi.16 for ; Tue, 29 Apr 2014 05:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=OtK6y6f8m70vnrgRMVyHnH5EFaPMvsh1nLJ0z7PrHIE=; b=Z0i9oR9PdiAYAAlDSP5r47wvshIU1va9CkrrTGN1+thFk9VQM6cT3UlgfpTY1CxMCw 5dRNenWQJqQycFaGYuEKhRfjntGsTCswpSj+GPa1HhojCmEQxP3EJ3o2tdlZhJHLxaMo /0fn7/l0f7GWQusBRDxw8Sbdu3XB/+JjrovFnfkRYcdjlcx7qimpeFUaZq1FR1Hd5Fp0 hfjP44NMM67Ne/7NO+PE2E8toaOiRT/aIZpDzj2emmrmPsaL2gQKAz0ZuRJH9NZO7T0B AKM6SNLttVhcL8ubIkojNVvFKgdwxnqJoTTf4bQQy0iDVP+nh45rf8UkT1DWT+xn44Fe +xmg== X-Received: by 10.66.171.206 with SMTP id aw14mr33156521pac.48.1398774155175; Tue, 29 Apr 2014 05:22:35 -0700 (PDT) Received: from masabert (i118-21-156-233.s30.a048.ap.plala.or.jp. [118.21.156.233]) by mx.google.com with ESMTPSA id xo9sm109788256pab.18.2014.04.29.05.22.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Apr 2014 05:22:34 -0700 (PDT) Received: by masabert (Postfix, from userid 1000) id 65732627BB; Tue, 29 Apr 2014 21:22:07 +0900 (JST) From: Masanari Iida To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Masanari Iida Subject: [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Date: Tue, 29 Apr 2014 21:21:54 +0900 Message-Id: <1398774115-15353-1-git-send-email-standby24x7@gmail.com> X-Mailer: git-send-email 2.0.0.rc1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix format string mismatch in contrast_show(). Signed-off-by: Masanari Iida --- drivers/video/fbdev/wm8505fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/wm8505fb.c b/drivers/video/fbdev/wm8505fb.c index 537d199..d2fafbb 100644 --- a/drivers/video/fbdev/wm8505fb.c +++ b/drivers/video/fbdev/wm8505fb.c @@ -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,