Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754989AbaDNW63 (ORCPT ); Mon, 14 Apr 2014 18:58:29 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:48828 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbaDNW60 (ORCPT ); Mon, 14 Apr 2014 18:58:26 -0400 Date: Tue, 15 Apr 2014 07:58:22 +0900 From: Simon Horman To: Alexandre Belloni Cc: Thierry Reding , Tony Lindgren , Philipp Zabel , Paul Parsons , Magnus Damm , Eric Miao , Haojian Zhuang , Bryan Wu , Jingoo Han , Lee Jones , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-sh@vger.kernel.org, linux-leds@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCHv2 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members Message-ID: <20140414225822.GG22518@verge.net.au> References: <1397512793-10325-1-git-send-email-alexandre.belloni@free-electrons.com> <1397512793-10325-3-git-send-email-alexandre.belloni@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1397512793-10325-3-git-send-email-alexandre.belloni@free-electrons.com> Organisation: Horms Solutions Ltd. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 14, 2014 at 11:59:44PM +0200, Alexandre Belloni wrote: > Initializing all the struct pwm_lookup members allows to get rid of the struct > tpu_pwm_platform_data as the polarity initialization will be taken care of by > the PWM core. > > Signed-off-by: Alexandre Belloni This looks good to me. Please let me know when the driver code has been merged and I'll take this patch. Likewise for the other shmobile patch in this series. > --- > arch/arm/mach-shmobile/board-armadillo800eva.c | 20 +++++++++----------- > 1 file changed, 9 insertions(+), 11 deletions(-) > > diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c > index 2858f380beae..1bf61dad9a35 100644 > --- a/arch/arm/mach-shmobile/board-armadillo800eva.c > +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c > @@ -31,7 +31,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > @@ -399,24 +399,22 @@ static struct resource pwm_resources[] = { > }, > }; > > -static struct tpu_pwm_platform_data pwm_device_data = { > - .channels[2] = { > - .polarity = PWM_POLARITY_INVERSED, > - } > -}; > - > static struct platform_device pwm_device = { > .name = "renesas-tpu-pwm", > .id = -1, > - .dev = { > - .platform_data = &pwm_device_data, > - }, > .num_resources = ARRAY_SIZE(pwm_resources), > .resource = pwm_resources, > }; > > static struct pwm_lookup pwm_lookup[] = { > - PWM_LOOKUP("renesas-tpu-pwm", 2, "pwm-backlight.0", NULL), > + { > + .provider = "renesas-tpu-pwm", > + .index = 2, > + .dev_id = "pwm-backlight.0", > + .con_id = NULL, > + .period = 33333, > + .polarity = PWM_POLARITY_INVERSED, > + }, > }; > > /* LCDC and backlight */ > -- > 1.8.3.2 > -- 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/