From patchwork Tue Jul 4 15:24:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynn Lei X-Patchwork-Id: 9825307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CFE2160237 for ; Tue, 4 Jul 2017 15:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C18CE28047 for ; Tue, 4 Jul 2017 15:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B629A280FC; Tue, 4 Jul 2017 15:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 609A728047 for ; Tue, 4 Jul 2017 15:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752268AbdGDPYe (ORCPT ); Tue, 4 Jul 2017 11:24:34 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33224 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbdGDPYd (ORCPT ); Tue, 4 Jul 2017 11:24:33 -0400 Received: by mail-pf0-f196.google.com with SMTP id e199so30886746pfh.0; Tue, 04 Jul 2017 08:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition; bh=yHy2pogbhgHOuSGagxBG0EAE+GIscRjugF+dej9Imqw=; b=Gkm1f8uaPb3FQlUzHjNwXM/Tm1xSmqwbW2MEgEbJbm2KQtVUkiPX7vM8uGbKQHN6vl FjCLA088ibG6CbUwyPnGwFoCJ6kZcn2X5+qqAZ0mQWz3V2T1g4+6yzDsI66Qwm6hnRHf 0X4trO1TqV5nwRuTXsvEGFh93PbZG7sccMmUNh0wbnd0g+vHd0+VwcpeGOwrCN4aF8h7 u5WI89KPL3aPKEUOy5UtxOYzFXPNdjR8GkclsV5Oe+q/pNCiP3lx0Wv9iqcCu1QPusbj hjBURLnhRfm1SCKp1DsQR7IMpDOW6neG/FJZEGCBJ7mg8a64TnNYLda1TNyX2KPrpNC5 Zh+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=yHy2pogbhgHOuSGagxBG0EAE+GIscRjugF+dej9Imqw=; b=V/TP6/MXHOOL3xqnqsRQ9ovntKwtxVQaiY3jDAejiZq5lFnpWD4jkqXSX5xexEWldk iO99xoX4kJntpP87keCA8ygoXYgxV3lBodA/vTKqHwMby9Wc6o012mFOJeGxNL9+DWjR cE8iMql8StIs5d/XMrGKjdFR+fi6a6C7vAhRc8L2zFjJKm4mSfRSMx+/ei/LuFlfMNPA nedawUEsiLnm7Wr0twx1fxPpqqhcA1iWar37W0XKkCaJBuSdeFWleBqTafX5jXbmaisC WvqQzWeprKAq2Mzop49lsSpynlHiP3RZS44OKcD3khmK64cD0mP1oWKqVUY8DAtULQlI Pn+A== X-Gm-Message-State: AIVw113YMji6jmHZRDFLVKAOvWuV0qesNjda53fcZDsrnmVPiLH+B3+5 qkzK9YpwOSDxLg== X-Received: by 10.98.14.79 with SMTP id w76mr15550652pfi.72.1499181863174; Tue, 04 Jul 2017 08:24:23 -0700 (PDT) Received: from lynnl.yet ([140.207.223.165]) by smtp.gmail.com with ESMTPSA id w66sm644573pfi.63.2017.07.04.08.24.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jul 2017 08:24:22 -0700 (PDT) From: Lynn Lei X-Google-Original-From: Lynn Lei Date: Tue, 4 Jul 2017 23:24:17 +0800 To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning Message-ID: <20170704152417.GA29324@lynnl.yet> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixed several prefer 'unsigned int' over 'unsigned' warnings checked by scripts/checkpatch.pl: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Lynn Lei --- drivers/video/fbdev/sm712fb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c index d492a9e9ac50..172e94146878 100644 --- a/drivers/video/fbdev/sm712fb.c +++ b/drivers/video/fbdev/sm712fb.c @@ -798,8 +798,8 @@ static void __init sm7xx_vga_setup(char *options) } } -static void sm712_setpalette(int regno, unsigned red, unsigned green, - unsigned blue, struct fb_info *info) +static void sm712_setpalette(int regno, unsigned int red, unsigned int green, + unsigned int blue, struct fb_info *info) { /* set bit 5:4 = 01 (write LCD RAM only) */ smtc_seqw(0x66, (smtc_seqr(0x66) & 0xC3) | 0x10); @@ -896,8 +896,9 @@ static int smtc_blank(int blank_mode, struct fb_info *info) return 0; } -static int smtc_setcolreg(unsigned regno, unsigned red, unsigned green, - unsigned blue, unsigned trans, struct fb_info *info) +static int smtc_setcolreg(unsigned int regno, unsigned int red, + unsigned int green, unsigned int blue, + unsigned int trans, struct fb_info *info) { struct smtcfb_info *sfb; u32 val;