extcon: Implement OF-based extcon lookup properly
authorTomasz Figa <tomasz.figa@gmail.com>
Thu, 16 Oct 2014 13:11:44 +0000 (15:11 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 24 Nov 2014 11:51:15 +0000 (20:51 +0900)
commitf841afb17476f485900bb6213cf93a64a7dc303f
treeb8da8088c72a4a0ee587e1a8e9c575625da4e369
parent0df1f2487d2f0d04703f142813d53615d62a1da4
extcon: Implement OF-based extcon lookup properly

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@gmail.com>
[mszyprow: simplified the code]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-class.c
This page took 0.02685 seconds and 5 git commands to generate.