Re: [PATCH] extcon: Implement OF-based extcon lookup properly

From: Chanwoo Choi
Date: Thu Oct 16 2014 - 19:32:42 EST


On 10/16/2014 10:11 PM, Marek Szyprowski wrote:
> From: Tomasz Figa <tomasz.figa@xxxxxxxxx>
>
> Platform bus is not the only way to have extcon devices, so current
> implementation of of_extcon_get_extcon_dev() is broken. Also using
> parent device node only to get device name is quite ugly.
>
> This patch reimplements of_extcon_get_extcon_dev() to do exactly the
> same as extcon_get_extcon_dev() but instead of comparing names, compare
> node pointers.
>
> Signed-off-by: Tomasz Figa <tomasz.figa@xxxxxxxxx>
> [mszyprow: simplified the code]
> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> ---
> drivers/extcon/extcon-class.c | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)

Applied it. Thank you.

Chanwoo Choi

--
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/