staging: sm750fb: change sii164EnableHotPlugDetection to snake_case
authorRichard Akintola <princerichard17a@gmail.com>
Tue, 8 Apr 2025 10:20:37 +0000 (11:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:32:09 +0000 (16:32 +0200)
Change camelCase function name sii164EnableHotPlugDetection to sii164_enable_hot_plug_detection
and it's parameter enableHotPlug to enable_hot_plug
to conform to kernel code styles as reported by checkpatch.pl

CHECK: Avoid camelCase: <sii164EnableHotPlugDetection>

Signed-off-by: Richard Akintola <princerichard17a@gmail.com>
Link: https://lore.kernel.org/r/04907f753bc0d1a2b2095ffba1d066516520fbb8.1744105389.git.princerichard17a@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_dvi.c
drivers/staging/sm750fb/ddk750_sii164.c
drivers/staging/sm750fb/ddk750_sii164.h

index c12df1f9fb0070b51160d0f9957e319b3a7b897f..1ce44c50617ae433e331c282245342f733e33974 100644 (file)
@@ -21,7 +21,7 @@ static struct dvi_ctrl_device dcft_supported_dvi_controller[] = {
                .reset_chip = sii164_reset_chip,
                .get_chip_string = sii164_get_chip_string,
                .set_power = sii164_set_power,
-               .enable_hot_plug_detection = sii164EnableHotPlugDetection,
+               .enable_hot_plug_detection = sii164_enable_hot_plug_detection,
                .is_connected = sii164IsConnected,
                .check_interrupt = sii164CheckInterrupt,
                .clear_interrupt = sii164ClearInterrupt,
index 4ab49c1ff4c7d359259d04475917d9a5a6fdcb6e..fc82b974376758a2699061811d1b50b3295d7b3b 100644 (file)
@@ -329,12 +329,12 @@ void sii164SelectHotPlugDetectionMode(enum sii164_hot_plug_mode hotPlugMode)
 }
 
 /*
- *  sii164EnableHotPlugDetection
+ *  sii164_enable_hot_plug_detection
  *      This function enables the Hot Plug detection.
  *
- *  enableHotPlug   - Enable (=1) / disable (=0) Hot Plug detection
+ *  enable_hot_plug   - Enable (=1) / disable (=0) Hot Plug detection
  */
-void sii164EnableHotPlugDetection(unsigned char enableHotPlug)
+void sii164_enable_hot_plug_detection(unsigned char enable_hot_plug)
 {
        unsigned char detectReg;
 
@@ -343,7 +343,7 @@ void sii164EnableHotPlugDetection(unsigned char enableHotPlug)
        /* Depending on each DVI controller, need to enable the hot plug based
         * on each individual chip design.
         */
-       if (enableHotPlug != 0)
+       if (enable_hot_plug != 0)
                sii164SelectHotPlugDetectionMode(SII164_HOTPLUG_USE_MDI);
        else
                sii164SelectHotPlugDetectionMode(SII164_HOTPLUG_DISABLE);
index c15cd6a5d53ba04ad81ecb7ad952f11ccecad8ad..9e289bf4a78e9ff76bdc995f554cdf96bbeb1960 100644 (file)
@@ -34,7 +34,7 @@ unsigned short sii164_get_device_id(void);
 void sii164_reset_chip(void);
 char *sii164_get_chip_string(void);
 void sii164_set_power(unsigned char powerUp);
-void sii164EnableHotPlugDetection(unsigned char enableHotPlug);
+void sii164_enable_hot_plug_detection(unsigned char enable_hot_plug);
 unsigned char sii164IsConnected(void);
 unsigned char sii164CheckInterrupt(void);
 void sii164ClearInterrupt(void);