From patchwork Wed May 10 21:55:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matej Dujava X-Patchwork-Id: 9720715 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 A81A86035D for ; Wed, 10 May 2017 22:05:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8FC928602 for ; Wed, 10 May 2017 22:05:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE1AC2864A; Wed, 10 May 2017 22:05:29 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 5EEF628642 for ; Wed, 10 May 2017 22:05:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752874AbdEJWF2 (ORCPT ); Wed, 10 May 2017 18:05:28 -0400 Received: from [185.8.237.53] ([185.8.237.53]:56242 "EHLO ns1.kocurkovo.cz" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753151AbdEJWF1 (ORCPT ); Wed, 10 May 2017 18:05:27 -0400 Received: by ns1.kocurkovo.cz (Postfix, from userid 1000) id 9E67C5E5F; Wed, 10 May 2017 23:56:32 +0200 (CEST) From: Matej Dujava To: Sudip Mukherjee Cc: linux-fbdev@vger.kernel.org, Matej Dujava Subject: [PATCH 7/9] staging: sm750fb: Remove typedef from "typedef enum _disp_output_t" Date: Wed, 10 May 2017 23:55:57 +0200 Message-Id: <1494453359-3722-8-git-send-email-mdujava@kocurkovo.cz> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1494453359-3722-1-git-send-email-mdujava@kocurkovo.cz> References: <1494453359-3722-1-git-send-email-mdujava@kocurkovo.cz> 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 _disp_output_t" to "enum disp_output" as per kernel coding standards. Signed-off-by: Matej Dujava --- drivers/staging/sm750fb/ddk750_display.c | 2 +- drivers/staging/sm750fb/ddk750_display.h | 8 ++++---- drivers/staging/sm750fb/sm750_hw.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_display.c b/drivers/staging/sm750fb/ddk750_display.c index 9b116ed6..13b91c3 100644 --- a/drivers/staging/sm750fb/ddk750_display.c +++ b/drivers/staging/sm750fb/ddk750_display.c @@ -110,7 +110,7 @@ static void swPanelPowerSequence(int disp, int delay) primary_wait_vertical_sync(delay); } -void ddk750_setLogicalDispOut(disp_output_t output) +void ddk750_setLogicalDispOut(enum disp_output output) { unsigned int reg; diff --git a/drivers/staging/sm750fb/ddk750_display.h b/drivers/staging/sm750fb/ddk750_display.h index f9e1614..8b0830f 100644 --- a/drivers/staging/sm750fb/ddk750_display.h +++ b/drivers/staging/sm750fb/ddk750_display.h @@ -88,7 +88,7 @@ * LCD1 means panel path TFT1 & panel path DVI (so enable DAC) * CRT means crt path DSUB */ -typedef enum _disp_output_t { +enum disp_output { do_LCD1_PRI = PNL_2_PRI | PRI_TP_ON | PNL_SEQ_ON | DAC_ON, do_LCD1_SEC = PNL_2_SEC | SEC_TP_ON | PNL_SEQ_ON | DAC_ON, do_LCD2_PRI = CRT_2_PRI | PRI_TP_ON | DUAL_TFT_ON, @@ -99,9 +99,9 @@ */ 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 output); + +void ddk750_setLogicalDispOut(enum disp_output output); #endif diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c index 3cdc4ae..f7d1e67 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -184,7 +184,7 @@ int hw_sm750_output_setMode(struct lynxfb_output *output, struct fb_fix_screeninfo *fix) { int ret; - disp_output_t dispSet; + enum disp_output dispSet; int channel; ret = 0;