From patchwork Thu Apr 24 15:47:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masanari Iida X-Patchwork-Id: 4052031 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 24517BFF02 for ; Thu, 24 Apr 2014 15:47:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CC4920279 for ; Thu, 24 Apr 2014 15:47:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 946A620219 for ; Thu, 24 Apr 2014 15:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758198AbaDXPr1 (ORCPT ); Thu, 24 Apr 2014 11:47:27 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:34121 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758170AbaDXPrZ (ORCPT ); Thu, 24 Apr 2014 11:47:25 -0400 Received: by mail-pb0-f49.google.com with SMTP id rr13so2091865pbb.36 for ; Thu, 24 Apr 2014 08:47:24 -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=D0bwmE15e9QKPorJXkYu+5wtg/5DJxTizwnwLZnT6mA=; b=a/zoJ05Zm2VnFOsxh4YzUuTfhlGsZW3xI1hZpK5MkXtfSwxv3EzyxqQYzOi/tnt020 PmO+evu3g6yFRfZvqD8JbrtBBVqBg+8sGVKGsEFhd9lQ9yfFNzcZ/babcnww2xeW71OT RlALVnwm+u/42+WOSO8G++GmfV/ao/IHYrzppYbHySLbsAs8qtBH2bFGjQ9C8/NUuygj yH/ThpFIzfMPkkogBVswxZ/ZZogV5pwL+6WSbuRFn73m0WRBqQWh++uXa/HCwbfxeTT2 h5HXVPcpuFos46N3wKTKcYfu7+8lH9Go3FvDEbEz78b4VlmNH8WgIEtHlsrUUjWNQB5k o4LQ== X-Received: by 10.68.220.103 with SMTP id pv7mr4370704pbc.17.1398354444455; Thu, 24 Apr 2014 08:47:24 -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 gj9sm9887834pbc.7.2014.04.24.08.47.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Apr 2014 08:47:23 -0700 (PDT) Received: by masabert (Postfix, from userid 1000) id D95D5627A6; Fri, 25 Apr 2014 00:47:18 +0900 (JST) From: Masanari Iida To: jg1.han@samsung.com, cooloney@gmail.com, lee.jones@linaro.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Masanari Iida Subject: [PATCH] video/backlight: Fix string type mismatch in s6e63m0.c Date: Fri, 25 Apr 2014 00:47:16 +0900 Message-Id: <1398354436-25467-1-git-send-email-standby24x7@gmail.com> X-Mailer: git-send-email 2.0.0.rc0.26.g779792a 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 string type mismatch in s6e63m0_sysfs_show_gamma_table(). gamma_table_count is defined as unsigned int. Signed-off-by: Masanari Iida Acked-by: Bryan Wu --- drivers/video/backlight/s6e63m0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 510a1bc..2d6d481 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c @@ -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);