Message ID | 1411151264-16245-2-git-send-email-ulf.hansson@linaro.org |
---|---|
State | Accepted |
Commit | c3099a5294f2c7266234e8ea35cbffc20a41aa9a |
Headers | show |
On Fri, Sep 19, 2014 at 8:27 PM, Ulf Hansson <ulf.hansson@linaro.org> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/linux/pm.h b/include/linux/pm.h index 72c0fe0..ef4e16f 100644 --- 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); }; /*
The intent of this callback is to simplify detachment of devices from their PM domains. Further patches will show the benefit. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- include/linux/pm.h | 1 + 1 file changed, 1 insertion(+)