linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cory Maccarrone <darkstar6262-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v3] [MFD] i2c-htcpld: Add the HTCPLD driver
Date: Wed, 6 Jan 2010 06:47:30 -0800	[thread overview]
Message-ID: <6cb013311001060647s3bce5e63mbae1a10036a14ae1@mail.gmail.com> (raw)
In-Reply-To: <20100106123532.GB5500-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>

On Wed, Jan 6, 2010 at 4:35 AM, Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
> Hi Cory,
>
> late review, sorry about that...
>
> The driver looks fine to me, but I get 23 checkpatch warnings and 5 errors for
> it.
> Could you please fix them, keeping in mind that I'm fine with printk/dev_*
> strings being more than 80 chars.
>

Yup, no problem.

> A couple of additional comments:
>
> ?cpld? ??

That should probably be rephrased to say "unknown model CPLD".  I'll fix that.

> Please use pr_* instead. It seems you're using it already, so let's be
> consistent.

Right.

> This routine is fairly big, and could be more readable by calling some
> subroutines. The chips initialisation part could be extracted out for example.

OK.

> Shouldnt it be: htcpld->chip[i].cache_in = 0; instead ?

Yes, good catch.

> You could have a nicer indentation here:
>                        error = request_threaded_irq(htcpld->chained_irq,
>                                                     NULL, htcpld_handler,
>                                                     flags, pdev->name, htcpld);
>

OK.

I'll make those fixes and resubmit.  Thanks for reviewing it!

- Cory

  parent reply	other threads:[~2010-01-06 14:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-15  1:38 [PATCH v3] [MFD] i2c-htcpld: Add the HTCPLD driver Cory Maccarrone
     [not found] ` <1260841135-6680-1-git-send-email-darkstar6262-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-06 12:35   ` Samuel Ortiz
     [not found]     ` <20100106123532.GB5500-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>
2010-01-06 14:47       ` Cory Maccarrone [this message]
     [not found]         ` <6cb013311001060647s3bce5e63mbae1a10036a14ae1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-09 16:55           ` Cory Maccarrone
     [not found]             ` <1263056154-20085-1-git-send-email-darkstar6262-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18 12:48               ` Samuel Ortiz
     [not found]                 ` <20100118124855.GB8036-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>
2010-01-18 15:36                   ` Samuel Ortiz
     [not found]                     ` <20100118153624.GA13811-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>
2010-01-18 21:23                       ` Cory Maccarrone
     [not found]                         ` <6cb013311001181323q79aba15dif165ff41d79734a7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-19 11:09                           ` Samuel Ortiz
     [not found]                             ` <20100119110916.GB554-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>
2010-01-19 11:48                               ` Jean Delvare
     [not found]                                 ` <20100119124812.345fe447-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-01-19 12:09                                   ` Samuel Ortiz
     [not found]                                     ` <20100119120947.GD554-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org>
2010-01-19 12:14                                       ` Jean Delvare
     [not found]                                         ` <20100119131402.7e465fdb-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-01-19 15:10                                           ` Cory Maccarrone
     [not found]                                             ` <6cb013311001190710q186405c7m1193af79e18a09e3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-03-07 18:03                                               ` Cory Maccarrone

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=6cb013311001060647s3bce5e63mbae1a10036a14ae1@mail.gmail.com \
    --to=darkstar6262-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.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).