Staging: sm750fb: Rename ddk750_setModeTiming
authorDorcas AnonoLitunya <anonolitunya@gmail.com>
Mon, 16 Oct 2023 20:14:12 +0000 (23:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2023 13:38:00 +0000 (15:38 +0200)
Rename function ddk750_setModeTiming to ddk750_set_mode_timing. This
patch affects three files as the function is imported to other external
files.

This follows snakecase naming convention and ensures a consistent naming
style throughout the file. Issue found by checkpatch.

Mutes the following checkpatch error:
CHECK:Avoid CamelCase: <ddk750_setModeTiming>

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

index e901855fa9b6b7dd54e59e688815fd70664a0a10..f3f354831617211fdef45fcaab5b630932f0bcbd 100644 (file)
@@ -207,7 +207,7 @@ static int program_mode_registers(struct mode_parameter *mode_param,
        return ret;
 }
 
-int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock)
+int ddk750_set_mode_timing(struct mode_parameter *parm, enum clock_type clock)
 {
        struct pll_value pll;
 
index 2df78a0937b2e180d34ddd981ac8e9ef6811810a..1b70885f85e5fd8c7213e9d6f5f0068cec82e02b 100644 (file)
@@ -33,5 +33,5 @@ struct mode_parameter {
        enum spolarity clock_phase_polarity;
 };
 
-int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock);
+int ddk750_set_mode_timing(struct mode_parameter *parm, enum clock_type clock);
 #endif
index 71247eaf26eef50f1ce9041e607f1152351510a0..4bc89218c11c81992f6429875403702c75c24477 100644 (file)
@@ -305,7 +305,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc,
                clock = SECONDARY_PLL;
 
        pr_debug("Request pixel clock = %lu\n", modparm.pixel_clock);
-       ret = ddk750_setModeTiming(&modparm, clock);
+       ret = ddk750_set_mode_timing(&modparm, clock);
        if (ret) {
                pr_err("Set mode timing failed\n");
                goto exit;