Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3852400ybp; Sun, 6 Oct 2019 22:03:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmdj21a9MhWHAAdFOpHpAUlOXPEGeZJFJtZgkUM2I7MEg/rzxh58xRURR5Qe5TirC5pjvT X-Received: by 2002:a17:906:fd1:: with SMTP id c17mr22416537ejk.45.1570424620787; Sun, 06 Oct 2019 22:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570424620; cv=none; d=google.com; s=arc-20160816; b=ed+AD5mo8HmSBf9gtQIJBeV9NuQusIRKls7qd23bRmUG9v51Ddvks++6TknoMwkcKa MVkwcanORKdsO+aOnaf1Pup6gvYzDg2xlzPrzFmowXS32CHWdiEqHF11Q3iBFit9OAag KB2gOVEYFlufhQJeat+wsCVy4su46A10bjrvYjaCXqXKnQmm6jYYgmy2qzBldYkYht5B POowAneGrtoaXam41HazX8XZ2vsh4w8RwwJkAGeLUTCgtaWJUtTz+Qhr6ngiCVtYZ9NC 1MZ96ud4mCo8BnoARIYr87WLC22Aarbww2zvgifrDdzjC2jvC5bbPHW940Yk2VQ0fow+ Yhgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kTKd9BxTt/PAleEHYrjbGfQDxHC83timSY4p9uhdwxY=; b=gNICxRX0E3Fdd7k19qLz9gCc7zs9zH2WvZAeS2aJvynX42PyYEwsEiHuK7lPQzp4jD GELmIDi/kdeL1wscsSQ1FNGU1BKYI+auZaoeEd3AkaJoMegfAfZrVGc5ccTODdbj0WNE f5ji4VIyic7eCygNMyf6HNf4vTYXwvvuFt9K/zHLuDcif8hobMLj06KORl8UCOtfSQj6 EqWgmWfuygajFsAmOFuU6k9WGMyHRn10CHg8e0hBKvcYFJkODIPO6fmzyI5tnRKzcz3A J7GliR0HmqnDYaJBv2AJpWHf0/fiFxkSen1FTHWxFEFLWwf4NJv19T5MrRLCEXpy/pUT /3vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jpp/wAae"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si6346693ejv.67.2019.10.06.22.03.15; Sun, 06 Oct 2019 22:03:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jpp/wAae"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727131AbfJGFAd (ORCPT + 99 others); Mon, 7 Oct 2019 01:00:33 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39411 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfJGFAd (ORCPT ); Mon, 7 Oct 2019 01:00:33 -0400 Received: by mail-ed1-f67.google.com with SMTP id a15so11160149edt.6 for ; Sun, 06 Oct 2019 22:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kTKd9BxTt/PAleEHYrjbGfQDxHC83timSY4p9uhdwxY=; b=jpp/wAaeud60o+Kl7w9WlxT8iTwbj6sHztRpaSL75wX9NPyzkBBrCkH/6sPyflDarl vxUtZbmPjoPH5/m3TQ9hmxXwpzzKdlsqzwtO/TY+jSVi80hfcp4dkC2b04oHL+fchDbx uvNFIxIWDgTqvMqC0DR5jLGEsLOipA46UEJmYEPciuuKdjvN9FLXhiQX/dog7ReUYs1n CY7RVtN/yQbS1jy8jkmKICkUWFe/ReaIV17hnqUAwSXytHuUayYDfMuJHl2YOvSxEBSI IGmv45HX59a3KyVfBunrXGeq7noibUuPEH0T76jZAwkpKRikGQgncqHxmouWDIRheR8M vy/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kTKd9BxTt/PAleEHYrjbGfQDxHC83timSY4p9uhdwxY=; b=AIw6hKtGKt9GdlcWqWsM7pT/gFHnS3Yi5zrZjZThbODVcqjn5Zw0M3XMpPUsYeRjIZ 9hRputxeYXy9hOiA1G6jtOq20SM87MuuJ3WIRSlxQuNHf1ivJhgpMhaHEplDIE0uVCLw Vyrf1xRT7cv1lXcG6DjcYOSUAAD+lbE7DNKZxC1w6L7HKUhLYhBcFuqPteU9w/qrjFWp peKDimxZ7T7cU8cQ7nsfACflwWho7nXIFbb8oB/srZp97nXM6BCkdSBFeJc6HOTQXtl7 qdUzByJgtsgWQAZ5rIl7w11dN/kha1LLLXCfv8kROycHLhk2zPyUkBJsZCkCjsb/RLp3 fAwA== X-Gm-Message-State: APjAAAUQJvNgUm3Xolz6PqyF2KxECoGQEycZkQuz8G23zZJ/KRN+9enS xwVswhA2mVgaMt7K+fX3F2NYw/RwVJ6g9VLhApYyHQ== X-Received: by 2002:a17:906:57ce:: with SMTP id u14mr22483243ejr.184.1570424430064; Sun, 06 Oct 2019 22:00:30 -0700 (PDT) MIME-Version: 1.0 References: <20191004133207.6663-1-linux@rasmusvillemoes.dk> <20191004133207.6663-7-linux@rasmusvillemoes.dk> In-Reply-To: <20191004133207.6663-7-linux@rasmusvillemoes.dk> From: Bjorn Andersson Date: Sun, 6 Oct 2019 22:00:19 -0700 Message-ID: Subject: Re: [PATCH v2 6/6] pwm: update comment on struct pwm_ops::apply To: Rasmus Villemoes Cc: Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , devicetree , Rob Herring , linux-pwm@vger.kernel.org, lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 4, 2019 at 6:33 AM Rasmus Villemoes wrote: > > Commit 71523d1812ac (pwm: Ensure pwm_apply_state() doesn't modify the > state argument) updated the kernel-doc for pwm_apply_state(), but not > for the ->apply callback in the pwm_ops struct. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Bjorn Andersson > --- > include/linux/pwm.h | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/include/linux/pwm.h b/include/linux/pwm.h > index b2c9c460947d..0ef808d925bb 100644 > --- a/include/linux/pwm.h > +++ b/include/linux/pwm.h > @@ -243,10 +243,7 @@ pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, > * @request: optional hook for requesting a PWM > * @free: optional hook for freeing a PWM > * @capture: capture and report PWM signal > - * @apply: atomically apply a new PWM config. The state argument > - * should be adjusted with the real hardware config (if the > - * approximate the period or duty_cycle value, state should > - * reflect it) > + * @apply: atomically apply a new PWM config > * @get_state: get the current PWM state. This function is only > * called once per PWM device when the PWM chip is > * registered. > -- > 2.20.1 >