Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: sm750fb: Rename ddk750_setModeTiming

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>

authored by

Dorcas AnonoLitunya and committed by
Greg Kroah-Hartman
260e7623 36322198

+3 -3
+1 -1
drivers/staging/sm750fb/ddk750_mode.c
··· 207 207 return ret; 208 208 } 209 209 210 - int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock) 210 + int ddk750_set_mode_timing(struct mode_parameter *parm, enum clock_type clock) 211 211 { 212 212 struct pll_value pll; 213 213
+1 -1
drivers/staging/sm750fb/ddk750_mode.h
··· 33 33 enum spolarity clock_phase_polarity; 34 34 }; 35 35 36 - int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock); 36 + int ddk750_set_mode_timing(struct mode_parameter *parm, enum clock_type clock); 37 37 #endif
+1 -1
drivers/staging/sm750fb/sm750_hw.c
··· 305 305 clock = SECONDARY_PLL; 306 306 307 307 pr_debug("Request pixel clock = %lu\n", modparm.pixel_clock); 308 - ret = ddk750_setModeTiming(&modparm, clock); 308 + ret = ddk750_set_mode_timing(&modparm, clock); 309 309 if (ret) { 310 310 pr_err("Set mode timing failed\n"); 311 311 goto exit;