Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1628749 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2017-04-22 05:00 +0200 |
| Last post | 2017-04-22 05:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC PATCH 2/3] clk: add managed version of clk_bulk_get Stephen Boyd <sboyd@codeaurora.org> - 2017-04-22 05:00 +0200
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2017-04-22 05:00 +0200 |
| Subject | Re: [RFC PATCH 2/3] clk: add managed version of clk_bulk_get |
| Message-ID | <tyTrc-5zp-5@gated-at.bofh.it> |
On 04/12, Dong Aisheng wrote: > diff --git a/include/linux/clk.h b/include/linux/clk.h > index 1d05b66..3fc6010 100644 > --- a/include/linux/clk.h > +++ b/include/linux/clk.h > @@ -278,11 +278,25 @@ struct clk *clk_get(struct device *dev, const char *id); > * > * clk_bulk_get should not be called from within interrupt context. > */ > - Should be in previous patch? > int __must_check clk_bulk_get(struct device *dev, int num_clks, > struct clk_bulk_data *clks); > > /** > + * devm_clk_bulk_get - managed get multiple clk consumers > + * @dev: device for clock "consumer" > + * @num_clks: the number of clk_bulk_data > + * @clks: the clk_bulk_data table of consumer > + * > + * Return 0 on success, an errno on failure. > + * > + * This helper function allows drivers to get several regulator s/regulator/clk/ > + * consumers in one operation with management, the clks will > + * automatically be freed when the device is unbound. > + */ > +int __must_check devm_clk_bulk_get(struct device *dev, int num_clks, Thanks for the __must_check. We need to add more __must_check to clk APIs. > + struct clk_bulk_data *clks); > + > +/** -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to top | Article view | linux.kernel
csiph-web