Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1642086
| From | Matej Dujava <mdujava@kocurkovo.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 5/7] staging: sm750fb: Remove typedef from "typedef enum _disp_output_t" |
| Date | 2017-05-16 00:00 +0200 |
| Message-ID | <tHwc2-57T-23@gated-at.bofh.it> (permalink) |
| References | <tHwc1-57T-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <mdujava@kocurkovo.cz>
---
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 b34a2c6..4d9ec3b 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;
--
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