Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757575Ab3JNXcd (ORCPT ); Mon, 14 Oct 2013 19:32:33 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:39192 "EHLO mail-ee0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757144Ab3JNXcc convert rfc822-to-8bit (ORCPT ); Mon, 14 Oct 2013 19:32:32 -0400 From: Maximilian =?ISO-8859-1?Q?G=FCntner?= To: Bryan Wu Cc: Richard Purdie , linux-kernel , linux-leds , Peter Meerwald Subject: Re: [PATCH] leds: Added driver for the NXP PCA9685 I2C chip Date: Tue, 15 Oct 2013 01:32:29 +0200 Message-ID: <3053694.67rQ0WDbyA@titan> User-Agent: KMail/4.11.2 (Linux/3.11.4-1-ARCH; KDE/4.11.2; x86_64; ; ) In-Reply-To: References: <2819232.mPNW6mO2uH@titan> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1378 Lines: 44 On Monday 14 October 2013 15:08:15 Bryan Wu wrote: > On Mon, Oct 14, 2013 at 10:31 AM, Maximilian G?ntner > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/