]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: sm750fb: Remove typedefs from enums
authorChristian Luetke-Stetzkamp <christian@lkamp.de>
Sun, 11 Feb 2018 17:23:17 +0000 (18:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:41:27 +0000 (15:41 +0100)
Fixes checkpatch.pl warning: do not add new typedefs.

Signed-off-by: Christian Luetke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c
drivers/staging/sm750fb/ddk750_chip.h
drivers/staging/sm750fb/ddk750_mode.c
drivers/staging/sm750fb/ddk750_mode.h
drivers/staging/sm750fb/sm750_hw.c

index 313b99104398db1e947c5f2d25c59eefb948949e..4c1f00f551dafe26820aeb0243899aa9e58f2f8a 100644 (file)
@@ -8,9 +8,9 @@
 
 #define MHz(x) ((x) * 1000000)
 
-static logical_chip_type_t chip;
+static enum logical_chip_type chip;
 
-logical_chip_type_t sm750_get_chip_type(void)
+enum logical_chip_type sm750_get_chip_type(void)
 {
        return chip;
 }
index aee82fcaf6693885d2d9c3367d0386149d17e61c..c72aac21b67501201762ecb50ef5d3b95ae0827d 100644 (file)
@@ -24,25 +24,23 @@ static inline void poke32(u32 addr, u32 data)
 }
 
 /* This is all the chips recognized by this library */
-typedef enum _logical_chip_type_t {
+enum logical_chip_type {
        SM_UNKNOWN,
        SM718,
        SM750,
        SM750LE,
-}
-logical_chip_type_t;
+};
 
-typedef enum _clock_type_t {
+enum clock_type {
        MXCLK_PLL,
        PRIMARY_PLL,
        SECONDARY_PLL,
        VGA0_PLL,
        VGA1_PLL,
-}
-clock_type_t;
+};
 
 struct pll_value {
-       clock_type_t clockType;
+       enum clock_type clockType;
        unsigned long inputFreq; /* Input clock frequency to the PLL */
 
        /* Use this when clockType = PANEL_PLL */
@@ -94,7 +92,7 @@ struct initchip_param {
        /* More initialization parameter can be added if needed */
 };
 
-logical_chip_type_t sm750_get_chip_type(void);
+enum logical_chip_type sm750_get_chip_type(void);
 void sm750_set_chip_type(unsigned short devId, u8 revId);
 unsigned int sm750_calc_pll_value(unsigned int request, struct  pll_value *pll);
 unsigned int sm750_format_pll_reg(struct pll_value *pPLL);
index 2cdd87b78e585e5735b692aacded925f71ebc966..7e22d093b09110084ee7952e41ebc80bd6fcf9c7 100644 (file)
@@ -206,7 +206,7 @@ static int programModeRegisters(struct mode_parameter *pModeParam,
        return ret;
 }
 
-int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock)
+int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock)
 {
        struct pll_value pll;
        unsigned int uiActualPixelClk;
index 259a9d6a4eb2be5ec8274f9ca3b411a517db63b8..2df78a0937b2e180d34ddd981ac8e9ef6811810a 100644 (file)
@@ -33,5 +33,5 @@ struct mode_parameter {
        enum spolarity clock_phase_polarity;
 };
 
-int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock);
+int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock);
 #endif
index a8c79864ee4b3f41a483d6a688fb755999453bb6..f996f8460641e496567905744e084ac0e362c0f4 100644 (file)
@@ -254,7 +254,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc,
        int ret, fmt;
        u32 reg;
        struct mode_parameter modparm;
-       clock_type_t clock;
+       enum clock_type clock;
        struct sm750_dev *sm750_dev;
        struct lynxfb_par *par;