Re: [PATCH V2] pinctrl: implement devm_pinctrl_get()/put()

From: Stephen Boyd
Date: Sat Apr 14 2012 - 01:10:24 EST


On 4/13/2012 9:48 AM, Stephen Warren wrote:
> From: Stephen Warren <swarren@xxxxxxxxxx>
>
> These functions allow the driver core to automatically clean up any
> allocations made by drivers, thus leading to simplified drivers.
>
> Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx>
> ---
> v2:
> * Updated documentation to describe and recommend using devm_* functions.
> * Added devm_pinctrl_get_select() and devm_pinctrl_get_select_default() to
> consumer.h

Please also document it in Documentation/driver-model/devres.txt

> ---
> Documentation/pinctrl.txt | 48 +++++++++++++++++++-------------
> drivers/pinctrl/core.c | 56 ++++++++++++++++++++++++++++++++++++++
> include/linux/pinctrl/consumer.h | 44 +++++++++++++++++++++++++++++
> 3 files changed, 129 insertions(+), 19 deletions(-)
>
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/