From patchwork Tue Mar 21 15:06:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi X-Patchwork-Id: 9636761 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 6580A60216 for ; Tue, 21 Mar 2017 15:08:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AEA42830A for ; Tue, 21 Mar 2017 15:08:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F6282833B; Tue, 21 Mar 2017 15:08:01 +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 87DD72830A for ; Tue, 21 Mar 2017 15:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758021AbdCUPH2 (ORCPT ); Tue, 21 Mar 2017 11:07:28 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35014 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757986AbdCUPH0 (ORCPT ); Tue, 21 Mar 2017 11:07:26 -0400 Received: by mail-pg0-f68.google.com with SMTP id g2so25630791pge.2; Tue, 21 Mar 2017 08:07:20 -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=zGN/U9wHdbgJ+aFD33fa5AVzhBnyyh2OgI14Rlfxy4Y=; b=tyTy4qAXGbKRIrAsoCeRcCoRQEZBpeTfEfcaafMc8foIXbUsFIiBF2up7KMGUJP3y7 KCbw5cEKGh009FDxdXVCqR5Rkw7Uqr+rDszrts+6f2tlmbQKNTedGxcbRzZdchtCkqTx zS057/gkpWZd2euhgjQd1eWFPKHGh2rZwCoIocHe3CspoGo5SgJkffhJZ9ICOYhZ74SO my9ZFQ8iiwqZJPmIHr4sgQdXRO43BNHFQCcbLKHeARjMF07ORm1JciFSqYUDBe20dSGZ yS4dzVB7cTL55as1oWwVh2UmDK0rUhkUSUhVwxRHtO90wlNdU1EcuE7HutwaVntH5k6M fGpA== 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=zGN/U9wHdbgJ+aFD33fa5AVzhBnyyh2OgI14Rlfxy4Y=; b=rmOqD4A+r2Yp9P4wxdx4O3lFAmntLA1FyooA3/Wc8d2RARasnkRlKwNqkhea7Y9bsv 57n8RlwKVR1YgDqiwnrG6nB2GVcNpJroD4zucJeEzXj0AGpyU29ucM8/jrj4XK36oLsF bSRenvV15eBMa7ETg074imVk1EADjNNUlxosmoyslrCU5LR4qMDyKG+1BFpkI3mwu74V n2no56UiE49nq3VwCqGjqqt57IGVUIyJNnUEIfkFwOv+FUV94ei2mog5MBX9eKRFpUaU oXS8Vt8hPTyLTah+PjEHbafEHS6gR3KQ996hD15G+nCiUzzpeU1Q6hgEZEaqKNtJAbtg TmZg== X-Gm-Message-State: AFeK/H2HhCkZ27Z6Xs+XqinvNPfwYdPplVaiIoLhxtosg5A7Y1KhJwS98wDRtmuS+GeD2A== X-Received: by 10.99.163.72 with SMTP id v8mr27271334pgn.115.1490108829729; Tue, 21 Mar 2017 08:07:09 -0700 (PDT) Received: from arushi-HP-Pavilion-Notebook ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id g29sm40318152pfg.37.2017.03.21.08.07.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 08:07:08 -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 2/2] staging: sm750fb: Remove typedef from "typedef enum _spolarity_t" Date: Tue, 21 Mar 2017 20:36:38 +0530 Message-Id: <20170321150638.9175-3-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 enum and renames it from "typedef enum _spolarity_t" to "enum spolarity" 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.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_mode.h b/drivers/staging/sm750fb/ddk750_mode.h index 9dc4d6c5a779..d5eae36d85cb 100644 --- a/drivers/staging/sm750fb/ddk750_mode.h +++ b/drivers/staging/sm750fb/ddk750_mode.h @@ -3,11 +3,10 @@ #include "ddk750_chip.h" -typedef enum _spolarity_t { +enum spolarity { POS = 0, /* positive */ NEG, /* negative */ -} -spolarity_t; +}; struct mode_parameter { /* Horizontal timing. */ @@ -15,14 +14,14 @@ struct mode_parameter { unsigned long horizontal_display_end; unsigned long horizontal_sync_start; unsigned long horizontal_sync_width; - spolarity_t horizontal_sync_polarity; + enum spolarity horizontal_sync_polarity; /* Vertical timing. */ unsigned long vertical_total; unsigned long vertical_display_end; unsigned long vertical_sync_start; unsigned long vertical_sync_height; - spolarity_t vertical_sync_polarity; + enum spolarity vertical_sync_polarity; /* Refresh timing. */ unsigned long pixel_clock; @@ -30,7 +29,7 @@ struct mode_parameter { unsigned long vertical_frequency; /* Clock Phase. This clock phase only applies to Panel. */ - spolarity_t clock_phase_polarity; + enum spolarity clock_phase_polarity; }; int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock);