Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755168AbbL3VEH (ORCPT ); Wed, 30 Dec 2015 16:04:07 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34889 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754753AbbL3VEB convert rfc822-to-8bit (ORCPT ); Wed, 30 Dec 2015 16:04:01 -0500 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Boris Brezillon , "Thierry Reding" , linux-pwm@vger.kernel.org From: Michael Turquette In-Reply-To: <1447664207-24370-4-git-send-email-boris.brezillon@free-electrons.com> Cc: "Stephen Boyd" , linux-clk@vger.kernel.org, "Mark Brown" , "Liam Girdwood" , "Kamil Debski" , lm-sensors@lm-sensors.org, "Jean Delvare" , "Guenter Roeck" , "Dmitry Torokhov" , linux-input@vger.kernel.org, "Bryan Wu" , "Richard Purdie" , "Jacek Anaszewski" , linux-leds@vger.kernel.org, "Maxime Ripard" , "Chen-Yu Tsai" , linux-sunxi@googlegroups.com, "Joachim Eastwood" , "Thomas Petazzoni" , "Heiko Stuebner" , linux-rockchip@lists.infradead.org, "Jingoo Han" , "Lee Jones" , linux-fbdev@vger.kernel.org, "Jean-Christophe Plagniol-Villard" , "Tomi Valkeinen" , "Robert Jarzmik" , "Alexandre Belloni" , "Julia Lawall" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Boris Brezillon" References: <1447664207-24370-1-git-send-email-boris.brezillon@free-electrons.com> <1447664207-24370-4-git-send-email-boris.brezillon@free-electrons.com> Message-ID: <20151230210358.19557.32933@quark.deferred.io> User-Agent: alot/0.3.6 Subject: Re: [PATCH v4 03/24] clk: pwm: use pwm_get_xxx() helpers where appropriate Date: Wed, 30 Dec 2015 13:03:58 -0800 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 23 Hi Boris, Quoting Boris Brezillon (2015-11-16 00:56:26) > diff --git a/drivers/clk/clk-pwm.c b/drivers/clk/clk-pwm.c > index 328fcfc..b6306a2 100644 > --- a/drivers/clk/clk-pwm.c > +++ b/drivers/clk/clk-pwm.c > @@ -71,22 +71,23 @@ static int clk_pwm_probe(struct platform_device *pdev) > if (IS_ERR(pwm)) > return PTR_ERR(pwm); > > - if (!pwm->period) { > + if (!pwm_get_period((pwm))) { The change itself looks fine, but the semantic patch added extra parens. Can you remove them? After doing so feel free to add: Acked-by: Michael Turquette -- 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/