From patchwork Tue Mar 21 15:06:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi X-Patchwork-Id: 9636753 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 62E70602CC for ; Tue, 21 Mar 2017 15:07:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5856420572 for ; Tue, 21 Mar 2017 15:07:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D1A4262F2; Tue, 21 Mar 2017 15:07:22 +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 F391020572 for ; Tue, 21 Mar 2017 15:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758003AbdCUPHG (ORCPT ); Tue, 21 Mar 2017 11:07:06 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34887 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757986AbdCUPHF (ORCPT ); Tue, 21 Mar 2017 11:07:05 -0400 Received: by mail-pg0-f66.google.com with SMTP id g2so25630131pge.2; Tue, 21 Mar 2017 08:07:04 -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=8sDtlCuO+o57zLaYb0xuCJLn3sVuiIMjdKBzq8EZNw0=; b=OxvEK1l0TX25WLR/J1nKbgjBYnspCedDyjOJR1ru4c4miPedNaQ0Y2YRr9AKG2Khyg 5qQR/67e/2K4FzMEIRVkNHBaH1mrb60AGamPseMDB7B4xxRRJIpbemtwOPfDBk92FklK PM/MHyBlcu+l7ueADpZ3r7znplrRcQSsEVJPk3qo89aCg2ELQkuBQ/CnkDXqcc3+aTG4 Fzufngejp/HzxCuO051dHja/PNsLPGa5qWjqYoWdoHC4goIhhrPQeNe1sEWbxYlOqSHS q9bXpcZoKo4mU/PP0vXbCyOklw+YdpGoh8+pQzWTZxl7Cp/w3dv1Zj9a6wdOxdLMHuaG Dt1g== 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=8sDtlCuO+o57zLaYb0xuCJLn3sVuiIMjdKBzq8EZNw0=; b=ANB/gGG6KGLAJEle4IcaQimOhlkQd5BvFppHrPzGevH0HOf3gsOfjJYbnUxSf6LcYI ZkjE6//vl8gYBWlrrafYeR094Yx5bJZfR24gSgXW+mbzAYWNDDS1t4u/OLjjgBb2TiiU b5wb/X3L6rhEVse20cMRlRNMs2khMBrfVGOgWju6EYNk8sclwO/t2OTQ4Fm3KDyQNdqY vDg8q9ZvCz/lGf2TgEVZO4ZEJ7VGWe+iiwX2GMusFKvWUzTf4GUTWIhE2m5Oe4XxkJyu FGjs3ZUX6nQ3sB1sW/XiJmQi06RN6qghYj14dr27j8//hke8gWwilMAM2k8kgX8B3QYj iufQ== X-Gm-Message-State: AFeK/H0n46ZsXq04QLgSjsviAj290YRCwkOll/PectQymzrdZDkmVl2eUV1cXuZ4UZoXFg== X-Received: by 10.84.175.67 with SMTP id s61mr48989380plb.126.1490108823663; Tue, 21 Mar 2017 08:07:03 -0700 (PDT) Received: from arushi-HP-Pavilion-Notebook ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id r67sm40260938pfb.125.2017.03.21.08.07.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 08:07:02 -0700 (PDT) From: Arushi Singhal To: linux-fbdev@vger.kernel.org Cc: outreachy-kernel@googlegroups.com, Michael.Hennerich@analog.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org, speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, sudipm.mukherjee@gmail.com, linux-iio@vger.kernel.org, Arushi Singhal Subject: [PATCH v2 1/2] staging: sm750fb: Remove typedef from "typedef struct _mode_parameter_t" Date: Tue, 21 Mar 2017 20:36:37 +0530 Message-Id: <20170321150638.9175-2-arushisinghal19971997@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170321150638.9175-1-arushisinghal19971997@gmail.com> References: <20170321150638.9175-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 struct and renames it from "typedef struct _mode_parameter_t" to "struct mode_parameter" as per kernel coding standards." Signed-off-by: Arushi Singhal --- changes in v2 -change the subject and commit message of PATCH. 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 eea5aef2956f..9665bb9478dc 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; @@ -198,7 +200,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;