From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH v5 01/11] PM / Domains: Add a detach callback to the struct dev_pm_domain Date: Mon, 22 Sep 2014 13:15:21 +0200 Message-ID: References: <1411151264-16245-1-git-send-email-ulf.hansson@linaro.org> <1411151264-16245-2-git-send-email-ulf.hansson@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1411151264-16245-2-git-send-email-ulf.hansson@linaro.org> Sender: linux-pm-owner@vger.kernel.org To: Ulf Hansson Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , Linux PM list , "linux-arm-kernel@lists.infradead.org" , ACPI Devel Maling List , Geert Uytterhoeven , Kevin Hilman , Alan Stern , Daniel Lezcano , Tomasz Figa , "devicetree@vger.kernel.org" , Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown List-Id: devicetree@vger.kernel.org On Fri, Sep 19, 2014 at 8:27 PM, Ulf Hansson wrote: > --- a/include/linux/pm.h > +++ b/include/linux/pm.h > @@ -619,6 +619,7 @@ extern int dev_pm_put_subsys_data(struct device *dev); > */ > struct dev_pm_domain { > struct dev_pm_ops ops; > + void (*detach)(struct device *, bool); I think it would help to add the parameter names, especially for the "bool" parameter: void (*detach)(struct device *dev, bool power_off); > }; > > /* Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds