]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Staging: sm750fb: remove typedef for enum in ddk750_power.{c,h}
authorKeerthi Reddy <keerthigd4990@gmail.com>
Mon, 2 Oct 2017 09:31:14 +0000 (15:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 16:12:04 +0000 (18:12 +0200)
Using typedef will hide that 'DPMS_t' is enum. 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 lowercaser the name 'DPMS_t'. 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_power.c
drivers/staging/sm750fb/ddk750_power.h

index 222ae1a06febcf92ed30f0d0cde3c5c73f93dd17..6f82ab05fdb673a846f20db63573afbcee8cbda9 100644 (file)
@@ -2,7 +2,7 @@
 #include "ddk750_reg.h"
 #include "ddk750_power.h"
 
-void ddk750_set_dpms(DPMS_t state)
+void ddk750_set_dpms(enum dpms state)
 {
        unsigned int value;
 
index 44c4fc587e9690dae1b5194083dd428220707537..033889f639203eaf0ddb781b94f4ab50f1e009e2 100644 (file)
@@ -1,20 +1,19 @@
 #ifndef DDK750_POWER_H__
 #define DDK750_POWER_H__
 
-typedef enum _DPMS_t {
+enum dpms {
        crtDPMS_ON = 0x0,
        crtDPMS_STANDBY = 0x1,
        crtDPMS_SUSPEND = 0x2,
        crtDPMS_OFF = 0x3,
-}
-DPMS_t;
+};
 
 #define setDAC(off) {                                                  \
        poke32(MISC_CTRL,                                               \
               (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
 }
 
-void ddk750_set_dpms(DPMS_t state);
+void ddk750_set_dpms(enum dpms state);
 void sm750_set_power_mode(unsigned int powerMode);
 void sm750_set_current_gate(unsigned int gate);