From patchwork Sun Mar 5 11:24:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi X-Patchwork-Id: 9604533 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 B3CC360414 for ; Sun, 5 Mar 2017 11:25:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A16152818E for ; Sun, 5 Mar 2017 11:25:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94561283BC; Sun, 5 Mar 2017 11:25:53 +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=unavailable 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 2A6252818E for ; Sun, 5 Mar 2017 11:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbdCELZM (ORCPT ); Sun, 5 Mar 2017 06:25:12 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34640 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbdCELZL (ORCPT ); Sun, 5 Mar 2017 06:25:11 -0500 Received: by mail-pf0-f195.google.com with SMTP id o126so448722pfb.1; Sun, 05 Mar 2017 03:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B7/od6p+Ax5UpFFFANJm1GvnZvk6VzBGYMOvP4G+hRc=; b=XT9cX/FSmVNl8Aiey0bsoannTRc729MA5xCI/bQQaAdnG/sReZp6Z5TFNmVCZUAX34 g/MsKW4md+PU+5ntb9Strxjese6xfAWIQ3uXyx4fkhgCPPe/oYT6jlCD/BQbfbLSvLO8 sGN6f0Cc2ftn6hH+1pSw6BhW7iEKVB5WXuib05j72JE+KeEhYFe4FWZOuH8EtPG3MkSN I4e1dkTmsUkvUvQb4885LkGvZEFNyDsfrtk82jF68EuopranA6dEnJTwLKJWzU45fnKf Brruam4z5Da6j+qtVAzHU7IoqoGTfDCPnZIzkINu6tqVM0+Q5oMspbZq94yNOuSaed4W g9pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B7/od6p+Ax5UpFFFANJm1GvnZvk6VzBGYMOvP4G+hRc=; b=n2Rtrq4iaje++zgdGvg3pn5+tDn0qyT1fafN+JBBW1ttqA400N84j/Hcyy9Aei8w7f 05pCq8WthUcfP10kX+zNGsz6t1k5hA4W3VKTp41DU+fAKUguiKTJ3q6mzDhUtJtvIK4K TFyPGYFZT7SQZjrBRus4hzGCd3htZSYf3VY0lsq2XORo4SwJ55oV5sMkoPvwFEawcGdn 6hnRRvtXyimvwGR/iQ9IqVPpWcUfdc8vQoj+eLmn8davzrUVf+YTtWZbzZ7pMqKFzPvH sF7vF1B8B+PrVo713uymqvrXnVZVFDrQ8fEx8vEVgasxfB6IU8tdzXOaNd0SnLc+ovvh CVTg== X-Gm-Message-State: AMke39kdI/fo0XaDxflphqhP5ttoW8pLRvt3+5r2WJKXlKP+evRCEmtj2WodEe1HTc8dwg== X-Received: by 10.99.174.2 with SMTP id q2mr1203392pgf.123.1488713104726; Sun, 05 Mar 2017 03:25:04 -0800 (PST) Received: from arushi-HP-Pavilion-Notebook ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id b195sm33280211pfb.106.2017.03.05.03.25.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Mar 2017 03:25:03 -0800 (PST) From: Arushi Singhal To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Arushi Singhal Subject: [PATCH 1/3] staging: sm750fb: fixes add blank line after function/struct/union/enum declarations Date: Sun, 5 Mar 2017 16:54:48 +0530 Message-Id: <20170305112450.9066-2-arushisinghal19971997@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170305112450.9066-1-arushisinghal19971997@gmail.com> References: <20170305112450.9066-1-arushisinghal19971997@gmail.com> 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 This patch fixes the warnings reported by checkpatch.pl for please use a blank line after function/struct/union/enum declarations. Signed-off-by: Arushi Singhal --- drivers/staging/sm750fb/ddk750_display.h | 1 + drivers/staging/sm750fb/ddk750_mode.h | 2 ++ drivers/staging/sm750fb/ddk750_power.h | 1 + drivers/staging/sm750fb/sm750_cursor.c | 3 +++ 4 files changed, 7 insertions(+) diff --git a/drivers/staging/sm750fb/ddk750_display.h b/drivers/staging/sm750fb/ddk750_display.h index e2a3f84ca4c5..8bf22e4f0d8b 100644 --- a/drivers/staging/sm750fb/ddk750_display.h +++ b/drivers/staging/sm750fb/ddk750_display.h @@ -100,6 +100,7 @@ typedef enum _disp_output_t { do_CRT_PRI = CRT_2_PRI | PRI_TP_ON | DPMS_ON | DAC_ON, do_CRT_SEC = CRT_2_SEC | SEC_TP_ON | DPMS_ON | DAC_ON, } + disp_output_t; void ddk750_setLogicalDispOut(disp_output_t); diff --git a/drivers/staging/sm750fb/ddk750_mode.h b/drivers/staging/sm750fb/ddk750_mode.h index 2183e664cf4b..b4cd90a5d2bc 100644 --- a/drivers/staging/sm750fb/ddk750_mode.h +++ b/drivers/staging/sm750fb/ddk750_mode.h @@ -7,6 +7,7 @@ typedef enum _spolarity_t { POS = 0, /* positive */ NEG, /* negative */ } + spolarity_t; typedef struct _mode_parameter_t { @@ -32,6 +33,7 @@ typedef struct _mode_parameter_t { /* Clock Phase. This clock phase only applies to Panel. */ spolarity_t clock_phase_polarity; } + mode_parameter_t; int ddk750_setModeTiming(mode_parameter_t *, clock_type_t); diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h index ec0b99d6a7ad..1f22a67493af 100644 --- a/drivers/staging/sm750fb/ddk750_power.h +++ b/drivers/staging/sm750fb/ddk750_power.h @@ -7,6 +7,7 @@ typedef enum _DPMS_t { crtDPMS_SUSPEND = 0x2, crtDPMS_OFF = 0x3, } + DPMS_t; #define setDAC(off) { \ diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c index aa232c31b312..1e29a0f0a53d 100644 --- a/drivers/staging/sm750fb/sm750_cursor.c +++ b/drivers/staging/sm750fb/sm750_cursor.c @@ -54,6 +54,7 @@ void sm750_hw_cursor_enable(struct lynx_cursor *cursor) reg = (cursor->offset & HWC_ADDRESS_ADDRESS_MASK) | HWC_ADDRESS_ENABLE; poke32(HWC_ADDRESS, reg); } + void sm750_hw_cursor_disable(struct lynx_cursor *cursor) { poke32(HWC_ADDRESS, 0); @@ -65,6 +66,7 @@ void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, cursor->w = w; cursor->h = h; } + void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y) { @@ -74,6 +76,7 @@ void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, (x & HWC_LOCATION_X_MASK)); poke32(HWC_LOCATION, reg); } + void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg) {