From patchwork Tue Mar 21 11:26:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi X-Patchwork-Id: 9636431 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 3B0E060216 for ; Tue, 21 Mar 2017 11:27:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DF9320072 for ; Tue, 21 Mar 2017 11:27:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31368205AB; Tue, 21 Mar 2017 11:27:20 +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 D9D1220072 for ; Tue, 21 Mar 2017 11:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757072AbdCUL0y (ORCPT ); Tue, 21 Mar 2017 07:26:54 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36704 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756924AbdCUL0w (ORCPT ); Tue, 21 Mar 2017 07:26:52 -0400 Received: by mail-pf0-f194.google.com with SMTP id r137so17732392pfr.3; Tue, 21 Mar 2017 04:26:51 -0700 (PDT) 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=GXTETvuq+rlDef82v4e70nY67EJxm0WOMUBaTbJhJo4=; b=AyZKWUD1DTPOJx4Ex6jnA9tQOrUZvqjH1RJNgGqyIzBFUWrlrnpcz2yEXyEEJC4+I7 CcLVNWx8fn19YhzyW1trBIOw7wz6rBctzHpd3JUC7cwwNfgF2qYj3T9szeKXFqHgP3e5 Rx/cySW2WK86IcRFBhuni3DhwBgOIpEd6IIXgc70NHkzLAi2mcp6lNWCbzrQMn2lCbw0 nEj/iHB3V6yN+Yb2b/kfbV01Hhv4S0g7lrnx/A8GmRcgLg8TPrRj4TjbOFmio1wziaTp YM+jE86MQzeNarC5uzamZKo4jnO1rBNYUM8v12096fOhHEEE4LdGrWSxEwaS1tQboPdi FGZA== 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=GXTETvuq+rlDef82v4e70nY67EJxm0WOMUBaTbJhJo4=; b=O2LD6wx0tO5PJ2K3TCQnE6jBMeq8xiHkZ8thqjpDGWvA7omwbndlJ+3KL4Qj8nOO6M UTb/Xj+EJu+iwFL9G5HPBl4XilRNso1etryyDDOHlvHgcvpVP9SRyHQ/gftlEpxESfbb w2JR9p0qL3+LJbvqvx1PtgBdc1aRGyfvn5T0w4KdoDdxGiqlgJHNBgKudmVi9ac/nvC6 j82VORReEkJsFpuPjcGVrGN1sSm/ExLtE5KHZH/nhqVT+kSIDx13dvKqcsdPRcIWv0nR Z4tGxorBWOd4edh9J9LjQ8pIwQlrjF/UT6rl/IRjSfcMmW5X/14Q5/s2Ap4KGKZzbftJ iPAA== X-Gm-Message-State: AFeK/H0oXRdPCI50S6UThk4xjBfNKSocQ1JRYQLQ97zH2cSnCxFv66RRzyvoCyYx0XS5Gg== X-Received: by 10.84.199.170 with SMTP id r39mr46556351pld.144.1490095611208; Tue, 21 Mar 2017 04:26:51 -0700 (PDT) Received: from arushi-HP-Pavilion-Notebook ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id l29sm29206820pfb.118.2017.03.21.04.26.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 04:26:50 -0700 (PDT) From: Arushi Singhal To: w.d.hubbs@gmail.com Cc: linux-fbdev@vger.kernel.org, outreachy-kernel@googlegroups.com, teddy.wang@siliconmotion.com, sudipm.mukherjee@gmail.com, gregkh@linuxfoundation.org, speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Arushi Singhal Subject: [PATCH 1/2] staging: sm750fb: Remove typedefs from struct Date: Tue, 21 Mar 2017 16:56:38 +0530 Message-Id: <20170321112639.32495-2-arushisinghal19971997@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170321112639.32495-1-arushisinghal19971997@gmail.com> References: <20170321112639.32495-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 removes typedefs from structure and renames them as per kernel coding standards. Signed-off-by: Arushi Singhal --- drivers/staging/sm750fb/ddk750_mode.c | 8 +++++--- drivers/staging/sm750fb/ddk750_mode.h | 8 +++----- drivers/staging/sm750fb/sm750_hw.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c index 37b5d4850fb9..bb673e18999b 100644 --- a/drivers/staging/sm750fb/ddk750_mode.c +++ b/drivers/staging/sm750fb/ddk750_mode.c @@ -12,7 +12,8 @@ * HW only supports 7 predefined pixel clocks, and clock select is * in bit 29:27 of Display Control register. */ -static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam, unsigned long dispControl) +static unsigned long displayControlAdjust_SM750LE(struct mode_parameter *pModeParam, + unsigned long dispControl) { unsigned long x, y; @@ -72,7 +73,8 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam, } /* only timing related registers will be programed */ -static int programModeRegisters(mode_parameter_t *pModeParam, struct pll_value *pll) +static int programModeRegisters(struct mode_parameter *pModeParam, + struct pll_value *pll) { int ret = 0; int cnt = 0; @@ -203,7 +205,7 @@ static int programModeRegisters(mode_parameter_t *pModeParam, struct pll_value * return ret; } -int ddk750_setModeTiming(mode_parameter_t *parm, clock_type_t clock) +int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock) { struct pll_value pll; unsigned int uiActualPixelClk; diff --git a/drivers/staging/sm750fb/ddk750_mode.h b/drivers/staging/sm750fb/ddk750_mode.h index 6d204b8b4a01..9dc4d6c5a779 100644 --- a/drivers/staging/sm750fb/ddk750_mode.h +++ b/drivers/staging/sm750fb/ddk750_mode.h @@ -9,7 +9,7 @@ typedef enum _spolarity_t { } spolarity_t; -typedef struct _mode_parameter_t { +struct mode_parameter { /* Horizontal timing. */ unsigned long horizontal_total; unsigned long horizontal_display_end; @@ -31,9 +31,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 *parm, clock_type_t clock); +}; +int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock); #endif diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c index fab3fc9c8330..baf1bbdc92ff 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -252,7 +252,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc, { int ret, fmt; u32 reg; - mode_parameter_t modparm; + struct mode_parameter modparm; clock_type_t clock; struct sm750_dev *sm750_dev; struct lynxfb_par *par;