Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1642352
| From | Matej Dujava <mdujava@kocurkovo.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 6/7] staging: sm750fb: Remove typedef from "typedef enum _DPMS_t" |
| Date | 2017-05-16 11:30 +0200 |
| Message-ID | <tHGXN-3Nc-45@gated-at.bofh.it> (permalink) |
| References | <tHGXM-3Nc-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch removes typedefs from enum and renames it from
"typedef enum _DPMS_t" to "enum DPMS" as per kernel coding standards.
Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
---
drivers/staging/sm750fb/ddk750_power.c | 2 +-
drivers/staging/sm750fb/ddk750_power.h | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c
index 222ae1a..bc91e73 100644
--- a/drivers/staging/sm750fb/ddk750_power.c
+++ b/drivers/staging/sm750fb/ddk750_power.c
@@ -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;
diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
index 44c4fc5..6764e53 100644
--- a/drivers/staging/sm750fb/ddk750_power.h
+++ b/drivers/staging/sm750fb/ddk750_power.h
@@ -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);
--
1.8.3.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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