Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1641026

[PATCH 9/9] staging: sm750fb: Remove typedef from "typedef enum _sii164_hot_plug_mode_t"

From Matej Dujava <mdujava@kocurkovo.cz>
Newsgroups linux.kernel
Subject [PATCH 9/9] staging: sm750fb: Remove typedef from "typedef enum _sii164_hot_plug_mode_t"
Date 2017-05-14 00:50 +0200
Message-ID <tGO1k-1w0-15@gated-at.bofh.it> (permalink)
References <tGO1j-1w0-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch removes typedefs from enum and renames it from "typedef enum
_sii164_hot_plug_mode_t" to "enum sii164_hot_plug_mode" as per kernel
coding standards.

Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
---
 drivers/staging/sm750fb/ddk750_sii164.c | 2 +-
 drivers/staging/sm750fb/ddk750_sii164.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_sii164.c b/drivers/staging/sm750fb/ddk750_sii164.c
index 0431833..f7bf84e8 100644
--- a/drivers/staging/sm750fb/ddk750_sii164.c
+++ b/drivers/staging/sm750fb/ddk750_sii164.c
@@ -296,7 +296,7 @@ void sii164SetPower(unsigned char powerUp)
  *  sii164SelectHotPlugDetectionMode
  *      This function selects the mode of the hot plug detection.
  */
-static void sii164SelectHotPlugDetectionMode(sii164_hot_plug_mode_t hotPlugMode)
+static void sii164SelectHotPlugDetectionMode(enum sii164_hot_plug_mode hotPlugMode)
 {
 	unsigned char detectReg;
 
diff --git a/drivers/staging/sm750fb/ddk750_sii164.h b/drivers/staging/sm750fb/ddk750_sii164.h
index 6968cf5..e06ba72 100644
--- a/drivers/staging/sm750fb/ddk750_sii164.h
+++ b/drivers/staging/sm750fb/ddk750_sii164.h
@@ -4,12 +4,12 @@
 #define USE_DVICHIP
 
 /* Hot Plug detection mode structure */
-typedef enum _sii164_hot_plug_mode_t {
+enum sii164_hot_plug_mode {
 	SII164_HOTPLUG_DISABLE = 0,         /* Disable Hot Plug output bit (always high). */
 	SII164_HOTPLUG_USE_MDI,             /* Use Monitor Detect Interrupt bit. */
 	SII164_HOTPLUG_USE_RSEN,            /* Use Receiver Sense detect bit. */
 	SII164_HOTPLUG_USE_HTPLG            /* Use Hot Plug detect bit. */
-} sii164_hot_plug_mode_t;
+};
 
 
 /* Silicon Image SiI164 chip prototype */
-- 
1.8.3.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/9] staging: sm750fb: cleaning code Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  [PATCH 1/9] staging: sm750fb: fix length of lines Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
    Re: [PATCH 1/9] staging: sm750fb: fix length of lines Dan Carpenter <dan.carpenter@oracle.com> - 2017-05-15 10:40 +0200
  [PATCH 8/9] staging: sm750fb: Remove typedef from "typedef enum _DPMS_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  [PATCH 2/9] staging: sm750fb: unifying macro definitions Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  [PATCH 3/9] staging: sm750fb: reordering of macro definitions Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
    Re: [PATCH 3/9] staging: sm750fb: reordering of macro definitions Greg KH <greg@kroah.com> - 2017-05-15 12:30 +0200
  [PATCH 9/9] staging: sm750fb: Remove typedef from "typedef enum _sii164_hot_plug_mode_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  [PATCH 7/9] staging: sm750fb: Remove typedef from "typedef enum _disp_output_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  [PATCH 4/9] staging: sm750fb: removing unnecessary binary operations Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
    Re: [PATCH 4/9] staging: sm750fb: removing unnecessary binary  operations Greg KH <greg@kroah.com> - 2017-05-15 12:30 +0200
  [PATCH 6/9] staging: sm750fb: Remove typedef from "typedef enum _clock_type_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-14 00:50 +0200
  Re: [PATCH 0/9] staging: sm750fb: cleaning code Greg KH <greg@kroah.com> - 2017-05-15 12:30 +0200
  [PATCH v2 0/7] staging: sm750fb: cleaning code Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 00:00 +0200
    [PATCH v2 3/7] staging: sm750fb: Remove typedef from "typedef enum _logical_chip_type_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 00:00 +0200
    [PATCH v2 5/7] staging: sm750fb: Remove typedef from "typedef enum _disp_output_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 00:00 +0200
    [PATCH v2 2/7] staging: sm750fb: unifying macro usage and definitions Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 00:00 +0200
    [PATCH v2 1/7] staging: sm750fb: fix length of lines, function calls and declaration Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 00:00 +0200
    [PATCH v3 0/7] staging: sm750fb: cleaning code Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 11:30 +0200
      [PATCH v3 6/7] staging: sm750fb: Remove typedef from "typedef enum _DPMS_t" Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 11:30 +0200
      [PATCH v3 1/7] staging: sm750fb: fix length of lines, function calls and declaration Matej Dujava <mdujava@kocurkovo.cz> - 2017-05-16 11:30 +0200
      Re: [PATCH v3 0/7] staging: sm750fb: cleaning code Greg KH <gregkh@linuxfoundation.org> - 2017-05-16 13:40 +0200

csiph-web