staging: sm750fb: modify function name to kernel code style
PATCH 1/1 staging: sm750fb: modify function name to kernel code style
Change camelCase function name sii164ResetChip to sii164_reset_chip as reported by checkpatch.pl
CHECK: Avoid camelCase: <sii164ResetChip>
--- drivers/staging/sm750fb/ddk750_dvi.c | 2 +- drivers/staging/sm750fb/ddk750_sii164.c | 4 ++-- drivers/staging/sm750fb/ddk750_sii164.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +1 -1
@@ -18,7 +18,7 @@ static struct dvi_ctrl_device dcft_supported_dvi_controller[] = { .get_vendor_id = sii164_get_vendor_id, .get_device_id = sii164GetDeviceID, #ifdef SII164_FULL_FUNCTIONS - .reset_chip = sii164ResetChip, + .reset_chip = sii164_reset_chip, .get_chip_string = sii164GetChipString, .set_power = sii164SetPower, .enable_hot_plug_detection = sii164EnableHotPlugDetection,
drivers/staging/sm750fb/ddk750_sii164.c +2 -2
@@ -250,10 +250,10 @@ long sii164_init_chip(unsigned char edge_select,#ifdef SII164_FULL_FUNCTIONS /* -* sii164ResetChip +* sii164_reset_chip * This function resets the DVI Controller Chip. */ -void sii164ResetChip (void ) +void sii164_reset_chip (void ) {/* Power down */ sii164SetPower (0 );
drivers/staging/sm750fb/ddk750_sii164.h +1 -1
@@ -31,7 +31,7 @@ unsigned short sii164_get_vendor_id(void);unsigned short sii164GetDeviceID (void );#ifdef SII164_FULL_FUNCTIONS -void sii164ResetChip (void ); +void sii164_reset_chip (void );char *sii164GetChipString (void );void sii164SetPower (unsigned char powerUp);void sii164EnableHotPlugDetection (unsigned char enableHotPlug);
Signature · 1 line
2.39.5
Greg KH
maintainerQuoted 11 lines · Richard Akintola
Change camelCase function name sii164ResetChip to
sii164_reset_chipas reported by checkpatch.plCHECK: Avoid camelCase: <sii164ResetChip>
Signed-off-by Richard Akintola <[email protected]>--- drivers/staging/sm750fb/ddk750_dvi.c | 2 +- drivers/staging/sm750fb/ddk750_sii164.c | 4 ++-- drivers/staging/sm750fb/ddk750_sii164.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
You sent 2 different patches with different subject lines, yet they almost did the same thing? Which one should I take or review? Please send a new one, as a version 3, and properly document what changed between this one and the last 2 submissions.
thanks,
greg k-h
Hi,
Yes I did send two different patches (part of the reason I used different subject lines),
they did similar things (change camelCase to snake_case, I wanted to get all done in the file,
but I learnt it is best done one at a time.
So should I have it all done in the file (there are more than 2 camelCase CHECKs), or send it
one after the other? (but you could take the first).
Thanks
Richard Akintola
Quoted 22 lines · Greg KH
Quoted 11 lines · Richard Akintola
Change camelCase function name sii164ResetChip to
sii164_reset_chipas reported by checkpatch.plCHECK: Avoid camelCase: <sii164ResetChip>
Signed-off-by Richard Akintola <[email protected]>--- drivers/staging/sm750fb/ddk750_dvi.c | 2 +- drivers/staging/sm750fb/ddk750_sii164.c | 4 ++-- drivers/staging/sm750fb/ddk750_sii164.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)You sent 2 different patches with different subject lines, yet they almost did the same thing? Which one should I take or review? Please send a new one, as a version 3, and properly document what changed between this one and the last 2 submissions.
thanks,
greg k-h
Greg KH
maintainerA: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
Quoted 11 lines · Richard Akintola
Hi,
Yes I did send two different patches (part of the reason I used different subject lines),
they did similar things (change camelCase tosnake_case, I wanted to get all done in the file,
but I learnt it is best done one at a time.So should I have it all done in the file (there are more than 2 camelCase CHECKs), or send it
one after the other? (but you could take the first).
Please send it as a patch series.
thanks,
greg k-h
Quoted 9 lines · Greg KH
A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Quoted 5 lines
A: No.
Q: Should I include quotations after my reply?
Thank you for educating me on top-posting, and I really appreciate that it was given in a top-posting style making me realise the consequences by experience.
Quoted 1 line
Please send it as a patch series.
I will send in the patch series as advised.
Richard Akintola