public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Stone <daniel.stone@nokia.com>
To: ext Eduardo Valentin <edubezval@gmail.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>,
	linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 1/5] I2C: LM8323: Introduce lm8323 keypad driver
Date: Wed, 9 Apr 2008 14:02:56 +0300	[thread overview]
Message-ID: <20080409110256.GA23681@intune.research.nokia.com> (raw)
In-Reply-To: <a0580c510804090354m1c01cd60h86d1664390e0606d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

Hi,

On Wed, Apr 09, 2008 at 01:54:16PM +0300, ext Eduardo Valentin wrote:
> ERROR: do not initialise statics to 0 or NULL
> WARNING: braces {} are not necessary for single statement blocks

Yeah, these should be fixed.

> WARNING: consider using strict_strtoul in preference to simple_strtoul
> WARNING: consider using strict_strtoul in preference to simple_strtoul

I don't even know what strict_strtoul is, but okay.

> WARNING: line over 80 characters
> WARNING: do not add new typedefs

Sure.

> daniel.diff has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
> 
> 
> I'd suggest using some #defines for lots for magic numbers in this code.

'lots'? The only ones I can see are the magic constant needed for reset
(used in one place and commented), and the default/max values for
debounce/active time, and max x/y, both of which are again only used in
a single place.

Cheers,
Daniel

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-04-09 11:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09 10:09 [PATCH 0/5] resend n810 drivers Felipe Balbi
2008-04-09 10:09 ` [PATCH 1/5] I2C: LM8323: Introduce lm8323 keypad driver Felipe Balbi
2008-04-09 10:09   ` [PATCH 2/5] I2C: TSL2563: Add support for Taos tsl2563 ambient light sensor Felipe Balbi
2008-04-09 10:09     ` [PATCH 3/5] INPUT: TOUCHSCREEN: Introduce tsc2005 driver Felipe Balbi
2008-04-09 10:09       ` [PATCH 4/5] I2C: LP5521: Introduce lp5521 LED driver Felipe Balbi
2008-04-09 10:09         ` [PATCH 5/5] ARM: N800: Update n800 defconfig Felipe Balbi
2008-04-09 11:32         ` [PATCH 4/5] I2C: LP5521: Introduce lp5521 LED driver Eduardo Valentin
2008-04-09 10:47     ` [PATCH 2/5] I2C: TSL2563: Add support for Taos tsl2563 ambient light sensor Eduardo Valentin
2008-04-09 10:54   ` [PATCH 1/5] I2C: LM8323: Introduce lm8323 keypad driver Eduardo Valentin
2008-04-09 11:02     ` Daniel Stone [this message]
2008-04-09 11:33       ` Eduardo Valentin
  -- strict thread matches above, loose matches on Subject: below --
2008-04-09 12:03 [PATCH 0/5] n810 drivers, take #3 Felipe Balbi
2008-04-09 12:04 ` [PATCH 1/5] I2C: LM8323: Introduce lm8323 keypad driver Felipe Balbi
2008-04-09 12:11   ` Felipe Balbi
2008-04-09 17:26     ` andrzej zaborowski
2008-04-09 18:05       ` Felipe Balbi
2008-04-09 18:28         ` Lauri Leukkunen
2008-04-09 23:58           ` andrzej zaborowski
2008-04-10  0:12             ` Daniel Stone
2008-04-10  1:12               ` andrzej zaborowski
2008-04-14 18:02                 ` Tony Lindgren
2008-04-09 20:35         ` Daniel Stone
2008-04-10 13:18         ` andrzej zaborowski
2008-04-10 14:34           ` Felipe Balbi
2008-04-09 10:04 [PATCH 0/5] n810 drivers Felipe Balbi
2008-04-09 10:04 ` [PATCH 1/5] I2C: LM8323: Introduce lm8323 keypad driver Felipe Balbi

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=20080409110256.GA23681@intune.research.nokia.com \
    --to=daniel.stone@nokia.com \
    --cc=edubezval@gmail.com \
    --cc=felipe.balbi@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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