staging: sm750fb: cleanup white space
PATCH v3 1/2 staging: sm750fb: cleanup white space
This patch fixes "space prohibited" errors reported by checkpatch.pl.
Signed-off-by Charles Rose <[email protected]>
--- drivers/staging/sm750fb/ddk750_chip.c | 12 ++++++------ drivers/staging/sm750fb/ddk750_power.c | 8 ++++---- drivers/staging/sm750fb/sm750_accel.c | 2 +- drivers/staging/sm750fb/sm750_help.h | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +6 -5
@@ -268,7 +268,7 @@ int ddk750_initHw(initchip_param_t *pInitParam)#endif -if (pInitParam->powerMode !=0 ) +if (pInitParam->powerMode !=0 ) pInitParam->powerMode =0 ;setPowerMode (pInitParam->powerMode);
@@ -285,7 +285,7 @@ int ddk750_initHw(initchip_param_t *pInitParam) ulReg =FIELD_SET (ulReg,VGA_CONFIGURATION ,MODE ,GRAPHIC );POKE32 (VGA_CONFIGURATION , ulReg); }else { -#if defined(__i386__) || defined( __x86_64__) +#if defined(__i386__) || defined(__x86_64__)/* set graphic mode via IO method */ outb_p (0x88 ,0x3d4 );outb_p (0x06 ,0x3d5 );
@@ -382,7 +382,7 @@ int ddk750_initHw(initchip_param_t *pInitParam)unsigned int absDiff (unsigned int a,unsigned int b) { -if ( a > b ) +if (a > b)return (a - b);else return (b - a);
@@ -606,9 +606,9 @@ unsigned int formatPllReg(pll_value_t *pPLL)On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg - FIELD_SET( 0, PANEL_PLL_CTRL, BYPASS, OFF) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) - | FIELD_SET( 0, PANEL_PLL_CTRL, INPUT, OSC) +FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) + | FIELD_SET(0, PANEL_PLL_CTRL, INPUT, OSC) #ifndef VALIDATION_CHIP |FIELD_VALUE (0 ,PANEL_PLL_CTRL ,POD , pPLL->POD) #endif
drivers/staging/sm750fb/ddk750_power.c +4 -4
@@ -59,17 +59,17 @@ void setPowerMode(unsigned int powerMode) { control_value #ifdef VALIDATION_CHIP - FIELD_SET( control_value, POWER_MODE_CTRL, 336CLK, OFF) | + FIELD_SET(control_value, POWER_MODE_CTRL, 336CLK, OFF) | #endif - FIELD_SET( control_value, POWER_MODE_CTRL, OSC_INPUT, OFF); + FIELD_SET(control_value, POWER_MODE_CTRL, OSC_INPUT, OFF); } else { control_value #ifdef VALIDATION_CHIP - FIELD_SET( control_value, POWER_MODE_CTRL, 336CLK, ON) | + FIELD_SET(control_value, POWER_MODE_CTRL, 336CLK, ON) | #endif - FIELD_SET( control_value, POWER_MODE_CTRL, OSC_INPUT, ON); + FIELD_SET(control_value, POWER_MODE_CTRL, OSC_INPUT, ON); } /* Program new power mode. */
drivers/staging/sm750fb/sm750_accel.c +1 -1
@@ -364,7 +364,7 @@ int hw_imageblit(struct lynx_accel *accel,Note that input pitch is BYTE value, but the 2D Pitch register uses pixel values. Need Byte to pixel convertion. */ -if (bytePerPixel =3 ){ +if (bytePerPixel =3 ) { dx *=3 ; width *=3 ; startBit *=3 ;
drivers/staging/sm750fb/sm750_help.h +1 -1
@@ -57,7 +57,7 @@#define FIELD_CLEAR (reg, field) \ ( \ - ~ _F_MASK(reg ## _ ## field) \ + ~_F_MASK(reg ## _ ## field) \ )
Signature · 1 line
2.1.0
PATCH v3 2/2 staging: sm750fb: cleanup indentation
This patch fixes indentation errors/warnings reported by checkpatch.pl.
Signed-off-by Charles Rose <[email protected]>
--- drivers/staging/sm750fb/ddk750_mode.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-)
drivers/staging/sm750fb/ddk750_mode.c +16 -8
@@ -44,21 +44,29 @@ static unsigned long displayControlAdjust_SM750LE(mode_parameter_t *pModeParam,/* Set bit 29:27 of display control register for the right clock */ /* Note that SM750LE only need to supported 7 resoluitons. */ if ( x =800 && y =600 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL41 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL41 );else if (x =1024 && y =768 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL65 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL65 );else if (x =1152 && y =864 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL80 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL80 );else if (x =1280 && y =768 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL80 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL80 );else if (x =1280 && y =720 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL74 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL74 );else if (x =1280 && y =960 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL108 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL108 );else if (x =1280 && y =1024 ) - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL108 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL108 );else /* default to VGA clock */ - dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CLK ,PLL25 ); + dispControl =FIELD_SET (dispControl, +CRT_DISPLAY_CTRL ,CLK ,PLL25 );/* Set bit 25:24 of display controller */ dispControl =FIELD_SET (dispControl,CRT_DISPLAY_CTRL ,CRTSELECT ,CRT );
Signature · 1 line
2.1.0
Re: [PATCH v3 2/2] staging: sm750fb: cleanup indentation
Looks good.
regards,
dan carpenter
Sudip Mukherjee
maintainerRe: [PATCH v3 2/2] staging: sm750fb: cleanup indentation
Quoted 1 line · Dan Carpenter
Looks good.
but its applying to linux-next and not applying to staging-testing. There are a few patches which Greg applied to staging-testing before the merge-window but they were not applied to staging-next. I guess he has been busy.
regards
sudip
Quoted 4 lines
regards,
dan carpenter
Greg KH
maintainerQuoted 9 lines · Charles Rose
This patch fixes "space prohibited" errors reported by checkpatch.pl.
Signed-off-by Charles Rose <[email protected]>--- drivers/staging/sm750fb/ddk750_chip.c | 12 ++++++------ drivers/staging/sm750fb/ddk750_power.c | 8 ++++---- drivers/staging/sm750fb/sm750_accel.c | 2 +- drivers/staging/sm750fb/sm750_help.h | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-)
Doesn't apply to my tree :(