lkml.org 
[lkml]   [2015]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] extcon: axp288: Convert to using managed resources
On 2015년 09월 15일 02:49, Vaishali Thakkar wrote:
> Use resource managed functions devm_usb_get_phy and
> devm_gpio_request to make error path simpler. To be
> compatible the change, various gotos are replaced
> with direct returns and unnecessary label
> gpio_req_failed is dropped.
>
> Also, remove function axp288_extcon_remove as it is
> now redundant.
>
> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
> ---
> drivers/extcon/extcon-axp288.c | 23 +++++------------------
> 1 file changed, 5 insertions(+), 18 deletions(-)

Applied it.

Thanks,
Chanwoo Choi



\
 
 \ /
  Last update: 2015-09-15 02:21    [W:0.029 / U:3.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site