Staging: sm750fb: Rename displayControlAdjust_SM750E
authorDorcas AnonoLitunya <anonolitunya@gmail.com>
Mon, 16 Oct 2023 20:14:08 +0000 (23:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2023 13:38:00 +0000 (15:38 +0200)
Rename function displayControlAdjust_SM750E to
display_control_adjust_SM750E. This follows snakecase naming convention
and ensures a consistent naming style throughout the file. Issue found by
checkpatch.

Mutes the following error:
CHECK:Avoid CamelCase: <displayControlAdjust_SM750E>

Signed-off-by: Dorcas AnonoLitunya <anonolitunya@gmail.com>
Link: https://lore.kernel.org/r/20231016201434.7880-2-anonolitunya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_mode.c

index e00a6cb31947dc6d2628daea14743567c6032709..8708995f676c9d9084bca6a2ae3dd174926fb9d3 100644 (file)
@@ -14,8 +14,8 @@
  * in bit 29:27 of Display Control register.
  */
 static unsigned long
-displayControlAdjust_SM750LE(struct mode_parameter *pModeParam,
-                            unsigned long dispControl)
+display_control_adjust_SM750LE(struct mode_parameter *pModeParam,
+                              unsigned long dispControl)
 {
        unsigned long x, y;
 
@@ -125,7 +125,7 @@ static int programModeRegisters(struct mode_parameter *pModeParam,
                        tmp |= DISPLAY_CTRL_HSYNC_PHASE;
 
                if (sm750_get_chip_type() == SM750LE) {
-                       displayControlAdjust_SM750LE(pModeParam, tmp);
+                       display_control_adjust_SM750LE(pModeParam, tmp);
                } else {
                        reg = peek32(CRT_DISPLAY_CTRL) &
                                ~(DISPLAY_CTRL_VSYNC_PHASE |