staging: sm750fb: rename `hw_sm750_setColReg`
authorEric Florin <ericflorin@google.com>
Mon, 19 May 2025 02:04:50 +0000 (19:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 11:48:23 +0000 (13:48 +0200)
Rename `hw_sm750_setColReg` to `hw_sm750_set_col_reg` to conform with
kernel style guidelines as reported by checkpatch.pl

CHECK: Avoid CamelCase: <hw_sm750_setColReg>

Signed-off-by: Eric Florin <ericflorin@google.com>
Link: https://lore.kernel.org/r/3d4bb87742eee4a6792bbdae893256f621ffffe6.1747619816.git.ericflorin@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_hw.c

index 5f4b0064cf921426af2c7aec81898eaa70e23f85..935c7b1a0fa47b02047c3a1ea5a73f1396d463d6 100644 (file)
@@ -545,7 +545,7 @@ static int lynxfb_ops_setcolreg(unsigned int regno,
                red >>= 8;
                green >>= 8;
                blue >>= 8;
-               ret = hw_sm750_setColReg(crtc, regno, red, green, blue);
+               ret = hw_sm750_set_col_reg(crtc, regno, red, green, blue);
                goto exit;
        }
 
index db80dd29565812b0cadd7a4ccb1a117bac4dae80..a70f51d08dd2c4d0529198f475ca52d70cc4d45d 100644 (file)
@@ -208,8 +208,8 @@ int hw_sm750_crtc_set_mode(struct lynxfb_crtc *crtc,
                           struct fb_var_screeninfo *var,
                           struct fb_fix_screeninfo *fix);
 
-int hw_sm750_setColReg(struct lynxfb_crtc *crtc, ushort index,
-                      ushort red, ushort green, ushort blue);
+int hw_sm750_set_col_reg(struct lynxfb_crtc *crtc, ushort index,
+                        ushort red, ushort green, ushort blue);
 
 int hw_sm750_setBLANK(struct lynxfb_output *output, int blank);
 int hw_sm750le_setBLANK(struct lynxfb_output *output, int blank);
index d3f218cb20f53156c3cdaefc56c2f4cf4208806d..04a0f9218eb87464715cf5e3a01042525fc1ca31 100644 (file)
@@ -370,8 +370,8 @@ exit:
        return ret;
 }
 
-int hw_sm750_setColReg(struct lynxfb_crtc *crtc, ushort index, ushort red,
-                      ushort green, ushort blue)
+int hw_sm750_set_col_reg(struct lynxfb_crtc *crtc, ushort index, ushort red,
+                        ushort green, ushort blue)
 {
        static unsigned int add[] = { PANEL_PALETTE_RAM, CRT_PALETTE_RAM };