linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] Change gpio_regulator_probe() to use managed resources.
@ 2014-07-02 10:05 Rob Jones
  2014-07-02 10:05 ` [PATCH V2 1/3] base: Add block copy func. for managed devices Rob Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rob Jones @ 2014-07-02 10:05 UTC (permalink / raw)
  To: linus.walleij, gnurou
  Cc: lgirdwood, broonie, linux-gpio, linux-kernel, linux-kernel,
	ian.molton, ben.dooks, heiko, rob.jones

Extend the use of managed resource functions in regulator by replacing
all calls to unmanaged resource allocation functions in
gpio_regulator_probe() with their managed equivalent.

Add a new function, devm_kmemdup(), to drivers/base/devres.c to support this.

Rob Jones (3):
  base: Add block copy func. for managed devices
  gpio: allow gpio array requests for managed devices
  regulator: use managed resources for gpio_regulator_probe().

 drivers/base/devres.c              |   25 +++++++++++++
 drivers/gpio/devres.c              |   63 ++++++++++++++++++++++++++++++++
 drivers/regulator/gpio-regulator.c |   70 ++++++++++++------------------------
 include/linux/device.h             |    2 ++
 include/linux/gpio.h               |    4 +++
 5 files changed, 117 insertions(+), 47 deletions(-)

-- 
1.7.10.4

Incorporates requested changes.

Note that this patch series no longer includes a change to devm_kstrdup()
as this was not essential to the primary aim of the series. This will be
submitted later once devm_kmemdup() has been accepted.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-04 23:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 10:05 [PATCH V2 0/3] Change gpio_regulator_probe() to use managed resources Rob Jones
2014-07-02 10:05 ` [PATCH V2 1/3] base: Add block copy func. for managed devices Rob Jones
2014-07-02 10:05 ` [PATCH V2 2/3] gpio: allow gpio array requests " Rob Jones
2014-07-04 23:12   ` Linus Walleij
2014-07-02 10:05 ` [PATCH V2 3/3] regulator: use managed resources for gpio_regulator_probe() Rob Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).