staging: sm750fb: Eliminate camel case
authorVatsala Narang <vatsalanarang@gmail.com>
Tue, 19 Mar 2019 20:21:57 +0000 (01:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2019 06:50:35 +0000 (07:50 +0100)
Edit CamelCase function name
Issue found by checkpatch.pl

Signed-off-by: Vatsala Narang <vatsalanarang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_display.c
drivers/staging/sm750fb/ddk750_display.h
drivers/staging/sm750fb/ddk750_power.h
drivers/staging/sm750fb/sm750_hw.c

index f38051eedb6c44709ffb66a6dbc00bddc44c1871..887ea8aef43fa341fa817dc83b37846d8d148af3 100644 (file)
@@ -85,7 +85,7 @@ static void primary_wait_vertical_sync(int delay)
        }
 }
 
-static void swPanelPowerSequence(int disp, int delay)
+static void sw_panel_power_sequence(int disp, int delay)
 {
        unsigned int reg;
 
@@ -111,7 +111,7 @@ static void swPanelPowerSequence(int disp, int delay)
        primary_wait_vertical_sync(delay);
 }
 
-void ddk750_setLogicalDispOut(enum disp_output output)
+void ddk750_set_logical_disp_out(enum disp_output output)
 {
        unsigned int reg;
 
@@ -147,12 +147,12 @@ void ddk750_setLogicalDispOut(enum disp_output output)
 
        if (output & PNL_SEQ_USAGE) {
                /* set  panel sequence */
-               swPanelPowerSequence((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET,
-                                    4);
+               sw_panel_power_sequence((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET,
+               4);
        }
 
        if (output & DAC_USAGE)
-               setDAC((output & DAC_MASK) >> DAC_OFFSET);
+               set_DAC((output & DAC_MASK) >> DAC_OFFSET);
 
        if (output & DPMS_USAGE)
                ddk750_set_dpms((output & DPMS_MASK) >> DPMS_OFFSET);
index 7fd101d981994ce381db0a2ff9dd569c7115f56b..7f713906dc16152684c420901a6adb0d93262663 100644 (file)
@@ -102,6 +102,6 @@ enum disp_output {
        do_CRT_SEC = CRT_2_SEC | SEC_TP_ON | DPMS_ON | DAC_ON,
 };
 
-void ddk750_setLogicalDispOut(enum disp_output output);
+void ddk750_set_logical_disp_out(enum disp_output output);
 
 #endif
index e48c74ecbbd1f844b042e5acdc2e0e9813b3e4aa..7002567a47d2c23aaf1a8524fed3ff427176adcd 100644 (file)
@@ -9,7 +9,7 @@ enum dpms {
        crtDPMS_OFF = 0x3,
 };
 
-#define setDAC(off) {                                                  \
+#define set_DAC(off) {                                                 \
        poke32(MISC_CTRL,                                               \
               (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
 }
index edeae9d0688391bf9b91cf2b4aeaac2f3cd83778..ea1d3d4efbc2d89f9b64bc848df8912684876f68 100644 (file)
@@ -207,7 +207,7 @@ int hw_sm750_output_setMode(struct lynxfb_output *output,
                        if (output->paths & sm750_crt)
                                disp_set |= do_CRT_SEC;
                }
-               ddk750_setLogicalDispOut(disp_set);
+               ddk750_set_logical_disp_out(disp_set);
        } else {
                /* just open DISPLAY_CONTROL_750LE register bit 3:0 */
                u32 reg;