From: "Maximilian Güntner" <maximilian.guentner@gmail.com>
To: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-leds <linux-leds@vger.kernel.org>,
Peter Meerwald <pmeerw@pmeerw.net>
Subject: Re: [PATCH] leds: Added driver for the NXP PCA9685 I2C chip
Date: Tue, 15 Oct 2013 01:32:29 +0200 [thread overview]
Message-ID: <3053694.67rQ0WDbyA@titan> (raw)
In-Reply-To: <CAK5ve-++aGqSe5dg=MHxNKrk0V75OP0_OY5h2KVYeDY3VjZ4zg@mail.gmail.com>
On Monday 14 October 2013 15:08:15 Bryan Wu wrote:
> On Mon, Oct 14, 2013 at 10:31 AM, Maximilian Güntner
>
> <maximilian.guentner@gmail.com> wrote:
> > The NXP PCA9685 supports 16 channels/leds using a 12-bit PWM (4095
> > levels of brightness)
> > This driver supports configuration using platform_data.
>
> I'm OK for this patch basically, just a little picky coding style
> issue as below.
> > + if (brightness == 4096)
> > + *((u16 *)(i2c_buffer+1)) = cpu_to_le16(0x1000);
> > + else
> > + *((u16 *)(i2c_buffer+1)) = 0x0000;
>
> One empty line here probably is better.
fixed.
> > +
> > + pdata = dev_get_platdata(&client->dev);
> > +
>
> No need empty line here.
fixed.
> > + pca9685 = devm_kzalloc(&client->dev, 16 * sizeof(*pca9685),
> > GFP_KERNEL); +
>
> No need empty line here.
fixed.
> > &pca9685[i].led_cdev); + if (err < 0)
> > + goto exit;
> > + }
>
> You can add one empty line here.
fixed
Thanks for the quick review. A v2 of this patch is on its way which addresses your and
Peter Meerwald's comments.
Maximilian
next prev parent reply other threads:[~2013-10-14 23:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 17:31 [PATCH] leds: Added driver for the NXP PCA9685 I2C chip Maximilian Güntner
2013-10-14 22:08 ` Bryan Wu
2013-10-14 23:32 ` Maximilian Güntner [this message]
2013-10-15 1:19 ` [PATCH v2] " Maximilian Güntner
2013-10-15 17:39 ` Bryan Wu
2013-10-17 1:09 ` [PATCH v3] " Maximilian Güntner
2013-10-17 22:37 ` Bryan Wu
2013-10-17 23:00 ` Maximilian Güntner
2013-10-14 22:38 ` [PATCH] " Peter Meerwald
2013-10-14 23:26 ` Maximilian Güntner
2013-10-15 0:37 ` Jingoo Han
[not found] <525d89e8.CwG1bICTvwrMEEOp%fengguang.wu@intel.com>
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=3053694.67rQ0WDbyA@titan \
--to=maximilian.guentner@gmail.com \
--cc=cooloney@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
--cc=rpurdie@rpsys.net \
/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