summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2017-10-27 18:13:42 +0900
committerlokilee73 <changjoo.lee@samsung.com>2017-10-27 18:15:58 +0900
commit694515321d311f0f0fd28c3761bc30f74f77710e (patch)
tree3406be58b7fa67287566ca5067bcdec937281025
parent0539f468c49a979a93143ac95609ed277774d8af (diff)
downloaddeviced-694515321d311f0f0fd28c3761bc30f74f77710e.tar.gz
deviced-694515321d311f0f0fd28c3761bc30f74f77710e.tar.bz2
deviced-694515321d311f0f0fd28c3761bc30f74f77710e.zip
Change-Id: Ib87ccd1ded1d09bf3b140d7bdeb12d9defb2f3e4 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-xsrc/control/control.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/control/control.c b/src/control/control.c
index a0f87d5d..0af8af83 100755
--- a/src/control/control.c
+++ b/src/control/control.c
@@ -119,9 +119,11 @@ static int get_control_handler(int argc, char **argv)
if (i >= ARRAY_SIZE(devices))
return -EINVAL;
- FIND_DEVICE_INT(dev_ops, devices[i].name);
-
- return device_get_status(dev_ops);
+ FIND_DEVICE(dev_ops, devices[i].name);
+ if (!check_default(dev_ops))
+ return device_get_status(dev_ops);
+ else
+ return extcon_get_status(devices[i].name);
}