diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2014-10-16 15:11:44 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2014-11-24 20:51:15 +0900 |
commit | f841afb17476f485900bb6213cf93a64a7dc303f (patch) | |
tree | b8da8088c72a4a0ee587e1a8e9c575625da4e369 /drivers/hv | |
parent | 0df1f2487d2f0d04703f142813d53615d62a1da4 (diff) | |
download | op-kernel-dev-f841afb17476f485900bb6213cf93a64a7dc303f.zip op-kernel-dev-f841afb17476f485900bb6213cf93a64a7dc303f.tar.gz |
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>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions