linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Palash Bandyopadhyay <Palash.Bandyopadhyay@conexant.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	Jay Guillory <Jay.Guillory@conexant.com>
Subject: Re: [cx231xx 1/2] Added support for s5h1432 demod
Date: Mon, 05 Jul 2010 19:29:13 -0300	[thread overview]
Message-ID: <4C325CB9.7080108@redhat.com> (raw)
In-Reply-To: <34B38BE41EDBA046A4AFBB591FA31132F4B402@NBMBX01.bbnet.ad>

Em 10-06-2010 01:25, Palash Bandyopadhyay escreveu:
> From 53df9742b92902b5fa9d28b2dcc949cb495725a5 Mon Sep 17 00:00:00 2001
> Message-Id: <53df9742b92902b5fa9d28b2dcc949cb495725a5.1276143429.git.palash.bandyopadhyay@conexant.com>
> From: palash <palash.bandyopadhyay@conexant.com>
> Date: Wed, 9 Jun 2010 21:13:17 -0700
> Subject: [cx231xx 1/2] Added support for s5h1432 demod
> To: linux-media@vger.kernel.org
> 
> Signed-off-by: palash <palash.bandyopadhyay@conexant.com>

There are lots of CodingStyle issues that need fixes. Even fixing the bad whitespacing
with a script, there are still lots of other issues, as pointed by scripts/checkpatch.pl:

WARNING: please write a paragraph that describes the config symbol fully
#60: FILE: drivers/media/dvb/frontends/Kconfig:264:
+       help

WARNING: suspect code indent for conditional statements (7, 15)
#130: FILE: drivers/media/dvb/frontends/s5h1432.c:52:
+       if (debug)              \
+	       printk(arg);    \

WARNING: suspect code indent for conditional statements (7, 15)
#145: FILE: drivers/media/dvb/frontends/s5h1432.c:67:
+       if (ret != 1)
+	       printk(KERN_ERR "%s: writereg error 0x%02x 0x%02x 0x%04x, "

WARNING: suspect code indent for conditional statements (7, 15)
#164: FILE: drivers/media/dvb/frontends/s5h1432.c:86:
+       if (ret != 2)
+	       printk(KERN_ERR "%s: readreg error (ret == %i)\n",

WARNING: unnecessary whitespace before a quoted newline
#256: FILE: drivers/media/dvb/frontends/s5h1432.c:178:
+	       printk(KERN_INFO "Default IFFreq %d :reg value = 0x%x \n",

WARNING: suspect code indent for conditional statements (7, 15)
#279: FILE: drivers/media/dvb/frontends/s5h1432.c:201:
+       if (p->frequency == state->current_frequency) {
+	       /*current_frequency = p->frequency;*/

WARNING: suspect code indent for conditional statements (7, 15)
#396: FILE: drivers/media/dvb/frontends/s5h1432.c:318:
+       for (i = 0; i < 0xFF; i++) {
+	       reg = s5h1432_readreg(state, S5H1432_I2C_TOP_ADDR, i);

WARNING: suspect code indent for conditional statements (7, 15)
#463: FILE: drivers/media/dvb/frontends/s5h1432.c:385:
+       if (state == NULL)
+	       goto error;

total: 0 errors, 8 warnings, 562 lines checked

patches/lmml_108408_cx231xx_1_2_added_support_for_s5h1432_demod.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Please fix.

Cheers,
Mauro

      parent reply	other threads:[~2010-07-05 22:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10  4:25 [cx231xx 1/2] Added support for s5h1432 demod Palash Bandyopadhyay
2010-06-10  4:27 ` [cx25821] Removed duplicate code and cleaned up Palash Bandyopadhyay
2010-07-05  5:26   ` Mauro Carvalho Chehab
2010-07-05  6:49     ` Palash Bandyopadhyay
2010-07-05 14:34       ` Mauro Carvalho Chehab
2010-07-05 22:29 ` Mauro Carvalho Chehab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C325CB9.7080108@redhat.com \
    --to=mchehab@redhat.com \
    --cc=Jay.Guillory@conexant.com \
    --cc=Palash.Bandyopadhyay@conexant.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).