[PATCH V2 0/3] Change gpio_regulator_probe() to use managed resources.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux