staging: sm750fb: remove typedef for enum in ddk750_sii164.{c,h}
authorKeerthi Reddy <keerthigd4990@gmail.com>
Mon, 2 Oct 2017 09:32:03 +0000 (15:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 16:12:27 +0000 (18:12 +0200)
Removing this will make sure that we are actually working with
enum. Also it is not a good coding style to use typedef.

In this commit remove typedef and also drop '_t' which traditionally
means typedef

Signed-off-by: Keerthi Reddy <keerthigd4990@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_sii164.c
drivers/staging/sm750fb/ddk750_sii164.h

index 0431833de781c5b9fce6c1188a9a79f656aa5736..3d68e1d00cb1c85e0908aede106966d2fc45962d 100644 (file)
@@ -296,7 +296,8 @@ 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;
 
index 6968cf532f160afca43b476abb78fdb5f00f1e2a..e06ba729b4e2155a30ef38c7b11915ca187e36a0 100644 (file)
@@ -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 */