]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: sm750fb: rename sm750_hw_cursor_setColor
authorEric Florin <ericflorin.kernel@gmail.com>
Wed, 30 Apr 2025 05:55:37 +0000 (22:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 May 2025 15:48:39 +0000 (17:48 +0200)
Rename sm750_hw_cursor_setColor to sm750_hw_cursor_set_color to conform
with kernel style guidelines as reported by checkpatch.pl

CHECK: Avoid CamelCase: <sm750_hw_cursor_setColor>

Signed-off-by: Eric Florin <ericflorin.kernel@gmail.com>
Link: https://lore.kernel.org/r/93717027d952d14d9b17f78e8440a734e4dc5d89.1745982772.git.ericflorin.kernel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c
drivers/staging/sm750fb/sm750_cursor.c
drivers/staging/sm750fb/sm750_cursor.h

index 8dd32aa6ac6e519ff0237a7448c2ebc64fa2af05..483a30841c771aea715fdc39f8b93cfc20612376 100644 (file)
@@ -141,7 +141,7 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
                     ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) |
                     ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11);
 
-               sm750_hw_cursor_setColor(cursor, fg, bg);
+               sm750_hw_cursor_set_color(cursor, fg, bg);
        }
 
        if (fbcursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
index a6fe241e7748aa0a04e780439917ea908ebbc7e2..e80d6efe0ab19382862649d936dbd054c9fdae03 100644 (file)
@@ -72,7 +72,7 @@ void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y)
        poke32(HWC_LOCATION, reg);
 }
 
-void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg)
+void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg)
 {
        u32 reg = (fg << HWC_COLOR_12_2_RGB565_SHIFT) &
                HWC_COLOR_12_2_RGB565_MASK;
index d0ade8e366f40c892fde40dbb9542cb6413b8b28..edfa6a8202cd7ec8ca77d22ce130a7b278e9bee7 100644 (file)
@@ -7,7 +7,7 @@ void sm750_hw_cursor_enable(struct lynx_cursor *cursor);
 void sm750_hw_cursor_disable(struct lynx_cursor *cursor);
 void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h);
 void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y);
-void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg);
+void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg);
 void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
                             const u8 *data, const u8 *mask);
 void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,