Browse Source

staging: sm750fb: Rename dispState

Rename dispState to disp_state to avoid CamelCase. Problem found using
checkpatch.pl
CHECK: Avoid CamelCase: <dispState>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Amitoj Kaur Chawla 10 years ago
parent
commit
edb23022f2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/staging/sm750fb/ddk750_display.c

+ 3 - 3
drivers/staging/sm750fb/ddk750_display.c

@@ -6,7 +6,7 @@
 
 
 #define primaryWaitVerticalSync(delay) waitNextVerticalSync(0, delay)
 #define primaryWaitVerticalSync(delay) waitNextVerticalSync(0, delay)
 
 
-static void setDisplayControl(int ctrl, int dispState)
+static void setDisplayControl(int ctrl, int disp_state)
 {
 {
 	/* state != 0 means turn on both timing & plane en_bit */
 	/* state != 0 means turn on both timing & plane en_bit */
 	unsigned long ulDisplayCtrlReg, ulReservedBits;
 	unsigned long ulDisplayCtrlReg, ulReservedBits;
@@ -18,7 +18,7 @@ static void setDisplayControl(int ctrl, int dispState)
 	if (!ctrl) {
 	if (!ctrl) {
 		ulDisplayCtrlReg = PEEK32(PANEL_DISPLAY_CTRL);
 		ulDisplayCtrlReg = PEEK32(PANEL_DISPLAY_CTRL);
 		/* Turn on/off the Panel display control */
 		/* Turn on/off the Panel display control */
-		if (dispState) {
+		if (disp_state) {
 			/* Timing should be enabled first before enabling the plane
 			/* Timing should be enabled first before enabling the plane
 			 * because changing at the same time does not guarantee that
 			 * because changing at the same time does not guarantee that
 			 * the plane will also enabled or disabled.
 			 * the plane will also enabled or disabled.
@@ -70,7 +70,7 @@ static void setDisplayControl(int ctrl, int dispState)
 		/* Set the secondary display control */
 		/* Set the secondary display control */
 		ulDisplayCtrlReg = PEEK32(CRT_DISPLAY_CTRL);
 		ulDisplayCtrlReg = PEEK32(CRT_DISPLAY_CTRL);
 
 
-		if (dispState) {
+		if (disp_state) {
 			/* Timing should be enabled first before enabling the plane because changing at the
 			/* Timing should be enabled first before enabling the plane because changing at the
 			   same time does not guarantee that the plane will also enabled or disabled.
 			   same time does not guarantee that the plane will also enabled or disabled.
 			   */
 			   */