Skip to contentSkip to conversation

Staging: media: vino: Convert comments from C99 to C89 style

PATCH In review Ksenija Stanojevic 2 participants 4 messages Feb 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: media: vino: Convert comments from C99 to C89 style

This patch fixes the checkpatch.pl error:
ERROR: "Do not use C99 // comments"

---
 drivers/staging/media/vino/indycam.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/media/vino/indycam.c +3 -3
index f1d192b..8e223bd 100644
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Mikael Nousiainen <[email protected]>");
 MODULE_LICENSE("GPL");
 
 
-// #define INDYCAM_DEBUG
+/* #define INDYCAM_DEBUG */
 
 #ifdef INDYCAM_DEBUG
 #define dprintk(x...) printk("IndyCam: " x);
@@ -324,7 +324,7 @@ static int indycam_probe(struct i2c_client *client,
 
 	indycam_regdump(sd);
 
-	// initialize
+	/* initialize */
 	err = indycam_write_block(sd, 0, sizeof(initseq), (u8 *)&initseq);
 	if (err) {
 		printk(KERN_ERR "IndyCam initialization failed\n");
@@ -334,7 +334,7 @@ static int indycam_probe(struct i2c_client *client,
 
 	indycam_regdump(sd);
 
-	// white balance
+	/* white balance */
 	err = indycam_write_reg(sd, INDYCAM_REG_CONTROL,
 			  INDYCAM_CONTROL_AGCENA | INDYCAM_CONTROL_AWBCTL);
 	if (err) {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Ksenija Stanojevic

This patch fixes the checkpatch.pl error:
ERROR: "Do not use C99 // comments"

---
 drivers/staging/media/vino/indycam.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/media/vino/indycam.c +0 -0
index f1d192b..8e223bd 100644

drivers/staging/media/vino/indycam.c MODULE_AUTHOR("Mikael Nousiainen <[email protected]>"); · line 40

Quoted 8 lines
drivers/staging/media/vino/indycam.c +1 -1
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Mikael Nousiainen <[email protected]>");
 MODULE_LICENSE("GPL");
 
 
-// #define INDYCAM_DEBUG
+/* #define INDYCAM_DEBUG */
 
 #ifdef INDYCAM_DEBUG
 #define dprintk(x...) printk("IndyCam: " x);

You could consider whether you could get rid of dprintk, and replace it by the use of standard Linux debug logging functions, such as dev_dbg.

julia

Quoted 28 lines
drivers/staging/media/vino/indycam.c +2 -2
@@ -324,7 +324,7 @@ static int indycam_probe(struct i2c_client *client,
 
 	indycam_regdump(sd);
 
-	// initialize
+	/* initialize */
 	err = indycam_write_block(sd, 0, sizeof(initseq), (u8 *)&initseq);
 	if (err) {
 		printk(KERN_ERR "IndyCam initialization failed\n");
@@ -334,7 +334,7 @@ static int indycam_probe(struct i2c_client *client,
 
 	indycam_regdump(sd);
 
-	// white balance
+	/* white balance */
 	err = indycam_write_reg(sd, INDYCAM_REG_CONTROL,
 			  INDYCAM_CONTROL_AGCENA | INDYCAM_CONTROL_AWBCTL);
 	if (err) {
Signature · 8 lines
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424377421-20388-1-git-send-email-ksenija.stanojevic%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw

Yes I know, the problem is similar to my previous patch, but two other comments
are not related to this issue and thus require separate patch

Quoted 64 lines · Julia Lawall

Review

Quoted 9 lines · Ksenija Stanojevic

This patch fixes the checkpatch.pl error:
ERROR: "Do not use C99 // comments"

---
 drivers/staging/media/vino/indycam.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/media/vino/indycam.c

Quoted 12 lines

index f1d192b..8e223bd 100644

drivers/staging/media/vino/indycam.c +1 -1
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Mikael Nousiainen <[email protected]
 ");
 MODULE_LICENSE("GPL");
 
 
-// #define INDYCAM_DEBUG
+/* #define INDYCAM_DEBUG */
 
 #ifdef INDYCAM_DEBUG
Quoted 1 line

#define dprintk(x...) printk("IndyCam: " x);

You could consider whether you could get rid of dprintk, and replace it by the use of standard Linux debug logging functions, such as dev_dbg.

julia

Quoted 21 lines
drivers/staging/media/vino/indycam.c +2 -3
@@ -324,7 +324,7 @@ static int indycam_probe(struct i2c_client *client,
 
      indycam_regdump(sd);
 
-     // initialize
+     /* initialize */
      err = indycam_write_block(sd, 0, sizeof(initseq), (u8 *)&initseq);
      if (err) {
              printk(KERN_ERR "IndyCam initialization failed\n");
@@ -334,7 +334,7 @@ static int indycam_probe(struct i2c_client *client,
 
      indycam_regdump(sd);
 
-     // white balance
+     /* white balance */
      err = indycam_write_reg(sd, INDYCAM_REG_CONTROL,
                        INDYCAM_CONTROL_AGCENA | INDYCAM_CONTROL_AWBCTL);
      if (err) {
--

1.9.1

Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/1424377421-20388-1-git-send-email-ksenija.stanojevic%40gmail.com
.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 3 lines · Ksenija Stanojević

Yes I know, the problem is similar to my previous patch, but two other comments
are not related to this issue and thus require separate patch

OK, it's a good point. A subsequent patch would be fine.

julia

Quoted 85 lines · Julia Lawall
      On Thu, 19 Feb 2015, Ksenija Stanojevic wrote:

      > This patch fixes the checkpatch.pl error:
      > ERROR: "Do not use C99 // comments"
      >
      > Signed-off-by: Ksenija Stanojevic
      <[email protected]>
      > ---
      >  drivers/staging/media/vino/indycam.c | 6 +++---
      >  1 file changed, 3 insertions(+), 3 deletions(-)
      >
      > diff --git a/drivers/staging/media/vino/indycam.c
      b/drivers/staging/media/vino/indycam.c
      > index f1d192b..8e223bd 100644
      > --- a/drivers/staging/media/vino/indycam.c
      > +++ b/drivers/staging/media/vino/indycam.c
      > @@ -34,7 +34,7 @@ MODULE_AUTHOR("Mikael Nousiainen
      <[email protected]>");
      >  MODULE_LICENSE("GPL");
      >
      >
      > -// #define INDYCAM_DEBUG
      > +/* #define INDYCAM_DEBUG */
      >
      >  #ifdef INDYCAM_DEBUG
      >  #define dprintk(x...) printk("IndyCam: " x);

      You could consider whether you could get rid of dprintk, and
      replace it by
      the use of standard Linux debug logging functions, such as
      dev_dbg.

      julia

      > @@ -324,7 +324,7 @@ static int indycam_probe(struct i2c_client
      *client,
      >
      >       indycam_regdump(sd);
      >
      > -     // initialize
      > +     /* initialize */
      >       err = indycam_write_block(sd, 0, sizeof(initseq), (u8
      *)&initseq);
      >       if (err) {
      >               printk(KERN_ERR "IndyCam initialization
      failed\n");
      > @@ -334,7 +334,7 @@ static int indycam_probe(struct i2c_client
      *client,
      >
      >       indycam_regdump(sd);
      >
      > -     // white balance
      > +     /* white balance */
      >       err = indycam_write_reg(sd, INDYCAM_REG_CONTROL,
      >                         INDYCAM_CONTROL_AGCENA |
      INDYCAM_CONTROL_AWBCTL);
      >       if (err) {
      > --
      > 1.9.1
      >
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/1424377421-20388-1-git-s

end-email-ksenija.stanojevic%40gmail.com.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CAL7P5jK0AKAH1uZTO%2B2dy ESqB9rD-Ystu0wfVE%2BgbayQO5u5wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.