Skip to content

Commit 5a32b7d

Browse files
Eric Floringregkh
authored andcommitted
staging: sm750fb: rename sm750_hw_cursor_setColor
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 <[email protected]> Link: https://lore.kernel.org/r/93717027d952d14d9b17f78e8440a734e4dc5d89.1745982772.git.ericflorin.kernel@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8f168c8 commit 5a32b7d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/staging/sm750fb/sm750.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
141141
((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) |
142142
((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11);
143143

144-
sm750_hw_cursor_setColor(cursor, fg, bg);
144+
sm750_hw_cursor_set_color(cursor, fg, bg);
145145
}
146146

147147
if (fbcursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {

drivers/staging/sm750fb/sm750_cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y)
7272
poke32(HWC_LOCATION, reg);
7373
}
7474

75-
void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg)
75+
void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg)
7676
{
7777
u32 reg = (fg << HWC_COLOR_12_2_RGB565_SHIFT) &
7878
HWC_COLOR_12_2_RGB565_MASK;

drivers/staging/sm750fb/sm750_cursor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void sm750_hw_cursor_enable(struct lynx_cursor *cursor);
77
void sm750_hw_cursor_disable(struct lynx_cursor *cursor);
88
void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h);
99
void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y);
10-
void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg);
10+
void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg);
1111
void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
1212
const u8 *data, const u8 *mask);
1313
void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,

0 commit comments

Comments
 (0)