staging: sm750fb: fix CamelCase names as reported by checkpatch.pl
Subsystems (2)
PATCH 1/1 staging: sm750fb: fix CamelCase names as reported by checkpatch.pl
--- drivers/staging/sm750fb/ddk750_dvi.c | 20 +-- drivers/staging/sm750fb/ddk750_mode.c | 90 ++++++------- drivers/staging/sm750fb/ddk750_mode.h | 2 +- drivers/staging/sm750fb/ddk750_power.h | 10 +- drivers/staging/sm750fb/ddk750_sii164.c | 172 ++++++++++++------------ drivers/staging/sm750fb/ddk750_sii164.h | 40 +++--- drivers/staging/sm750fb/sm750.c | 104 +++++++------- drivers/staging/sm750fb/sm750.h | 56 ++++---- drivers/staging/sm750fb/sm750_accel.c | 149 ++++++++++---------- drivers/staging/sm750fb/sm750_accel.h | 42 +++--- drivers/staging/sm750fb/sm750_cursor.c | 14 +- drivers/staging/sm750fb/sm750_cursor.h | 12 +- drivers/staging/sm750fb/sm750_hw.c | 62 ++++----- 13 files changed, 387 insertions(+), 386 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +10 -10
@@ -14,17 +14,17 @@static struct dvi_ctrl_device dcft_supported_dvi_controller[] = { #ifdef DVI_CTRL_SII164 { - .init = sii164InitChip, - .get_vendor_id = sii164GetVendorID, - .get_device_id = sii164GetDeviceID, + .init = sii164_init_chip, + .get_vendor_id = sii164_get_vendor_id, + .get_device_id = sii164_get_device_id, #ifdef SII164_FULL_FUNCTIONS - .reset_chip = sii164ResetChip, - .get_chip_string = sii164GetChipString, - .set_power = sii164SetPower, - .enable_hot_plug_detection = sii164EnableHotPlugDetection, - .is_connected = sii164IsConnected, - .check_interrupt = sii164CheckInterrupt, - .clear_interrupt = sii164ClearInterrupt, + .reset_chip = sii164_reset_chip, + .get_chip_string = sii164_get_chip_string, + .set_power = sii164_set_power, + .enable_hot_plug_detection = sii164_enable_hot_plug_detection, + .is_connected = sii164_is_connected, + .check_interrupt = sii164_check_interrupt, + .clear_interrupt = sii164_clear_interrupt, #endif }, #endif
drivers/staging/sm750fb/ddk750_mode.c +45 -45
204 lines not on this page · raw message
drivers/staging/sm750fb/ddk750_mode.h +1 -1
@@ -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
drivers/staging/sm750fb/ddk750_power.h +5 -5
@@ -3,10 +3,10 @@#define DDK750_POWER_H__ enum dpms { - crtDPMS_ON =0x0 , - crtDPMS_STANDBY =0x1 , - crtDPMS_SUSPEND =0x2 , - crtDPMS_OFF =0x3 , +CRT_DPMS_ON =0x0 , +CRT_DPMS_STANDBY =0x1 , +CRT_DPMS_SUSPEND =0x2 , +CRT_DPMS_OFF =0x3 , };#define set_DAC (off) { \
@@ -15,7 +15,7 @@ enum dpms { }void ddk750_set_dpms (enum dpms state); -void sm750_set_power_mode (unsigned int powerMode); +void sm750_set_power_mode (unsigned int power_mode);void sm750_set_current_gate (unsigned int gate);/*
drivers/staging/sm750fb/ddk750_sii164.c +86 -86
356 lines not on this page · raw message
drivers/staging/sm750fb/ddk750_sii164.h +20 -20
@@ -16,28 +16,28 @@ enum sii164_hot_plug_mode { };/* Silicon Image SiI164 chip prototype */ -long sii164InitChip (unsigned char edgeSelect, -unsigned char busSelect, -unsigned char dualEdgeClkSelect, -unsigned char hsyncEnable, -unsigned char vsyncEnable, -unsigned char deskewEnable, -unsigned char deskewSetting, -unsigned char continuousSyncEnable, -unsigned char pllFilterEnable, -unsigned char pllFilterValue); - -unsigned short sii164GetVendorID (void ); -unsigned short sii164GetDeviceID (void ); +long sii164_init_chip (unsigned char edge_select, +unsigned char bus_select, +unsigned char dual_edge_clk_select, +unsigned char hsync_enable, +unsigned char vsync_enable, +unsigned char deskew_enable, +unsigned char deskew_setting, +unsigned char continuous_sync_enable, +unsigned char pll_filter_enable, +unsigned char pll_filter_value); + +unsigned short sii164_get_vendor_id (void ); +unsigned short sii164_get_device_id (void );#ifdef SII164_FULL_FUNCTIONS -void sii164ResetChip (void ); -char *sii164GetChipString (void ); -void sii164SetPower (unsigned char powerUp); -void sii164EnableHotPlugDetection (unsigned char enableHotPlug); -unsigned char sii164IsConnected (void ); -unsigned char sii164CheckInterrupt (void ); -void sii164ClearInterrupt (void ); +void sii164_reset_rhip (void ); +char *sii164_get_chip_string (void ); +void sii164_set_power (unsigned char power_up); +void sii164_enable_hot_plug_detection (unsigned char enable_hot_plug); +unsigned char sii164_is_connected (void ); +unsigned char sii164_check_interrupt (void ); +void sii164_clear_interrupt (void );#endif /* * below register definition is used for
drivers/staging/sm750fb/sm750.c +52 -52
298 lines not on this page · raw message
drivers/staging/sm750fb/sm750.h +28 -28
109 lines not on this page · raw message
drivers/staging/sm750fb/sm750_accel.c +75 -74
342 lines not on this page · raw message
drivers/staging/sm750fb/sm750_accel.h +21 -21
74 lines not on this page · raw message
drivers/staging/sm750fb/sm750_cursor.c +7 -7
@@ -58,13 +58,13 @@ void sm750_hw_cursor_disable(struct lynx_cursor *cursor)poke32 (HWC_ADDRESS ,0 ); } -void sm750_hw_cursor_setSize (struct lynx_cursor *cursor,int w,int h) +void sm750_hw_cursor_set_size (struct lynx_cursor *cursor,int w,int h) { cursor->w = w; cursor->h = h; } -void sm750_hw_cursor_setPos (struct lynx_cursor *cursor,int x,int y) +void sm750_hw_cursor_set_pos (struct lynx_cursor *cursor,int x,int y) {u32 reg;
@@ -73,7 +73,7 @@ void sm750_hw_cursor_setPos(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 ;
@@ -82,8 +82,8 @@ void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg)poke32 (HWC_COLOR_3 ,0xffe0 ); } -void sm750_hw_cursor_setData (struct lynx_cursor *cursor,u16 rop, -const u8 *pcol,const u8 *pmsk) +void sm750_hw_cursor_set_data (struct lynx_cursor *cursor,u16 rop, +const u8 *pcol,const u8 *pmsk) {int i, j, count, pitch, offset;u8 color, mask, opr;
@@ -132,8 +132,8 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, } } -void sm750_hw_cursor_setData2 (struct lynx_cursor *cursor,u16 rop, -const u8 *pcol,const u8 *pmsk) +void sm750_hw_cursor_set_data2 (struct lynx_cursor *cursor,u16 rop, +const u8 *pcol,const u8 *pmsk) {int i, j, count, pitch, offset;u8 color, mask;
drivers/staging/sm750fb/sm750_cursor.h +6 -6
@@ -5,11 +5,11 @@/* hw_cursor_xxx works for voyager,718 and 750 */ void sm750_hw_cursor_enable (struct lynx_cursor *cursor);void sm750_hw_cursor_disable (struct lynx_cursor *cursor); -void sm750_hw_cursor_setSize (struct lynx_cursor *cursor,int w,int h); -void sm750_hw_cursor_setPos (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_setData (struct lynx_cursor *cursor,u16 rop, -const u8 *data,const u8 *mask); -void sm750_hw_cursor_setData2 (struct lynx_cursor *cursor,u16 rop, +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_set_color (struct lynx_cursor *cursor,u32 fg,u32 bg); +void sm750_hw_cursor_set_data (struct lynx_cursor *cursor,u16 rop,const u8 *data,const u8 *mask); +void sm750_hw_cursor_set_data2 (struct lynx_cursor *cursor,u16 rop, +const u8 *data,const u8 *mask);#endif
drivers/staging/sm750fb/sm750_hw.c +31 -31
172 lines not on this page · raw message
Signature · 1 line
2.25.1
Greg KH
maintainerQuoted 1 line · Nam Cao
Signed-off-by Nam Cao <[email protected]>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot
PATCH v2 1/1 staging: sm750fb: fix CamelCase name style
Convert all names in CamelCase style to appropriate styles as suggested by checkpatch.pl.
---
Changes in V2:
- Add patch description
drivers/staging/sm750fb/ddk750_dvi.c | 20 +-- drivers/staging/sm750fb/ddk750_mode.c | 90 ++++++------- drivers/staging/sm750fb/ddk750_mode.h | 2 +- drivers/staging/sm750fb/ddk750_power.h | 10 +- drivers/staging/sm750fb/ddk750_sii164.c | 172 ++++++++++++------------ drivers/staging/sm750fb/ddk750_sii164.h | 40 +++--- drivers/staging/sm750fb/sm750.c | 104 +++++++------- drivers/staging/sm750fb/sm750.h | 56 ++++---- drivers/staging/sm750fb/sm750_accel.c | 149 ++++++++++---------- drivers/staging/sm750fb/sm750_accel.h | 42 +++--- drivers/staging/sm750fb/sm750_cursor.c | 14 +- drivers/staging/sm750fb/sm750_cursor.h | 12 +- drivers/staging/sm750fb/sm750_hw.c | 62 ++++----- 13 files changed, 387 insertions(+), 386 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +10 -10
@@ -14,17 +14,17 @@static struct dvi_ctrl_device dcft_supported_dvi_controller[] = { #ifdef DVI_CTRL_SII164 { - .init = sii164InitChip, - .get_vendor_id = sii164GetVendorID, - .get_device_id = sii164GetDeviceID, + .init = sii164_init_chip, + .get_vendor_id = sii164_get_vendor_id, + .get_device_id = sii164_get_device_id, #ifdef SII164_FULL_FUNCTIONS - .reset_chip = sii164ResetChip, - .get_chip_string = sii164GetChipString, - .set_power = sii164SetPower, - .enable_hot_plug_detection = sii164EnableHotPlugDetection, - .is_connected = sii164IsConnected, - .check_interrupt = sii164CheckInterrupt, - .clear_interrupt = sii164ClearInterrupt, + .reset_chip = sii164_reset_chip, + .get_chip_string = sii164_get_chip_string, + .set_power = sii164_set_power, + .enable_hot_plug_detection = sii164_enable_hot_plug_detection, + .is_connected = sii164_is_connected, + .check_interrupt = sii164_check_interrupt, + .clear_interrupt = sii164_clear_interrupt, #endif }, #endif
drivers/staging/sm750fb/ddk750_mode.c +45 -45
204 lines not on this page · raw message
drivers/staging/sm750fb/ddk750_mode.h +1 -1
@@ -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
drivers/staging/sm750fb/ddk750_power.h +5 -5
@@ -3,10 +3,10 @@#define DDK750_POWER_H__ enum dpms { - crtDPMS_ON =0x0 , - crtDPMS_STANDBY =0x1 , - crtDPMS_SUSPEND =0x2 , - crtDPMS_OFF =0x3 , +CRT_DPMS_ON =0x0 , +CRT_DPMS_STANDBY =0x1 , +CRT_DPMS_SUSPEND =0x2 , +CRT_DPMS_OFF =0x3 , };#define set_DAC (off) { \
@@ -15,7 +15,7 @@ enum dpms { }void ddk750_set_dpms (enum dpms state); -void sm750_set_power_mode (unsigned int powerMode); +void sm750_set_power_mode (unsigned int power_mode);void sm750_set_current_gate (unsigned int gate);/*
drivers/staging/sm750fb/ddk750_sii164.c +86 -86
356 lines not on this page · raw message
drivers/staging/sm750fb/ddk750_sii164.h +20 -20
@@ -16,28 +16,28 @@ enum sii164_hot_plug_mode { };/* Silicon Image SiI164 chip prototype */ -long sii164InitChip (unsigned char edgeSelect, -unsigned char busSelect, -unsigned char dualEdgeClkSelect, -unsigned char hsyncEnable, -unsigned char vsyncEnable, -unsigned char deskewEnable, -unsigned char deskewSetting, -unsigned char continuousSyncEnable, -unsigned char pllFilterEnable, -unsigned char pllFilterValue); - -unsigned short sii164GetVendorID (void ); -unsigned short sii164GetDeviceID (void ); +long sii164_init_chip (unsigned char edge_select, +unsigned char bus_select, +unsigned char dual_edge_clk_select, +unsigned char hsync_enable, +unsigned char vsync_enable, +unsigned char deskew_enable, +unsigned char deskew_setting, +unsigned char continuous_sync_enable, +unsigned char pll_filter_enable, +unsigned char pll_filter_value); + +unsigned short sii164_get_vendor_id (void ); +unsigned short sii164_get_device_id (void );#ifdef SII164_FULL_FUNCTIONS -void sii164ResetChip (void ); -char *sii164GetChipString (void ); -void sii164SetPower (unsigned char powerUp); -void sii164EnableHotPlugDetection (unsigned char enableHotPlug); -unsigned char sii164IsConnected (void ); -unsigned char sii164CheckInterrupt (void ); -void sii164ClearInterrupt (void ); +void sii164_reset_rhip (void ); +char *sii164_get_chip_string (void ); +void sii164_set_power (unsigned char power_up); +void sii164_enable_hot_plug_detection (unsigned char enable_hot_plug); +unsigned char sii164_is_connected (void ); +unsigned char sii164_check_interrupt (void ); +void sii164_clear_interrupt (void );#endif /* * below register definition is used for
drivers/staging/sm750fb/sm750.c +52 -52
298 lines not on this page · raw message
drivers/staging/sm750fb/sm750.h +28 -28
109 lines not on this page · raw message
drivers/staging/sm750fb/sm750_accel.c +75 -74
342 lines not on this page · raw message
drivers/staging/sm750fb/sm750_accel.h +21 -21
74 lines not on this page · raw message
drivers/staging/sm750fb/sm750_cursor.c +7 -7
@@ -58,13 +58,13 @@ void sm750_hw_cursor_disable(struct lynx_cursor *cursor)poke32 (HWC_ADDRESS ,0 ); } -void sm750_hw_cursor_setSize (struct lynx_cursor *cursor,int w,int h) +void sm750_hw_cursor_set_size (struct lynx_cursor *cursor,int w,int h) { cursor->w = w; cursor->h = h; } -void sm750_hw_cursor_setPos (struct lynx_cursor *cursor,int x,int y) +void sm750_hw_cursor_set_pos (struct lynx_cursor *cursor,int x,int y) {u32 reg;
@@ -73,7 +73,7 @@ void sm750_hw_cursor_setPos(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 ;
@@ -82,8 +82,8 @@ void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg)poke32 (HWC_COLOR_3 ,0xffe0 ); } -void sm750_hw_cursor_setData (struct lynx_cursor *cursor,u16 rop, -const u8 *pcol,const u8 *pmsk) +void sm750_hw_cursor_set_data (struct lynx_cursor *cursor,u16 rop, +const u8 *pcol,const u8 *pmsk) {int i, j, count, pitch, offset;u8 color, mask, opr;
@@ -132,8 +132,8 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, } } -void sm750_hw_cursor_setData2 (struct lynx_cursor *cursor,u16 rop, -const u8 *pcol,const u8 *pmsk) +void sm750_hw_cursor_set_data2 (struct lynx_cursor *cursor,u16 rop, +const u8 *pcol,const u8 *pmsk) {int i, j, count, pitch, offset;u8 color, mask;
drivers/staging/sm750fb/sm750_cursor.h +6 -6
@@ -5,11 +5,11 @@/* hw_cursor_xxx works for voyager,718 and 750 */ void sm750_hw_cursor_enable (struct lynx_cursor *cursor);void sm750_hw_cursor_disable (struct lynx_cursor *cursor); -void sm750_hw_cursor_setSize (struct lynx_cursor *cursor,int w,int h); -void sm750_hw_cursor_setPos (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_setData (struct lynx_cursor *cursor,u16 rop, -const u8 *data,const u8 *mask); -void sm750_hw_cursor_setData2 (struct lynx_cursor *cursor,u16 rop, +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_set_color (struct lynx_cursor *cursor,u32 fg,u32 bg); +void sm750_hw_cursor_set_data (struct lynx_cursor *cursor,u16 rop,const u8 *data,const u8 *mask); +void sm750_hw_cursor_set_data2 (struct lynx_cursor *cursor,u16 rop, +const u8 *data,const u8 *mask);#endif
drivers/staging/sm750fb/sm750_hw.c +31 -31
172 lines not on this page · raw message
Signature · 1 line
2.25.1
Greg KH
maintainerRe: [PATCH v2] staging: sm750fb: fix CamelCase name style
Quoted 8 lines · Nam Cao
Convert all names in CamelCase style to appropriate styles as suggested by checkpatch.pl.
Signed-off-by Nam Cao <[email protected]>---
Changes in V2:
- Add patch description
Quoted 15 lines
drivers/staging/sm750fb/ddk750_dvi.c | 20 +-- drivers/staging/sm750fb/ddk750_mode.c | 90 ++++++------- drivers/staging/sm750fb/ddk750_mode.h | 2 +- drivers/staging/sm750fb/ddk750_power.h | 10 +- drivers/staging/sm750fb/ddk750_sii164.c | 172 ++++++++++++------------ drivers/staging/sm750fb/ddk750_sii164.h | 40 +++--- drivers/staging/sm750fb/sm750.c | 104 +++++++------- drivers/staging/sm750fb/sm750.h | 56 ++++---- drivers/staging/sm750fb/sm750_accel.c | 149 ++++++++++---------- drivers/staging/sm750fb/sm750_accel.h | 42 +++--- drivers/staging/sm750fb/sm750_cursor.c | 14 +- drivers/staging/sm750fb/sm750_cursor.h | 12 +- drivers/staging/sm750fb/sm750_hw.c | 62 ++++----- 13 files changed, 387 insertions(+), 386 deletions(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot