diff options
author | lokilee73 <changjoo.lee@samsung.com> | 2017-10-27 18:13:42 +0900 |
---|---|---|
committer | lokilee73 <changjoo.lee@samsung.com> | 2017-10-27 18:15:58 +0900 |
commit | 694515321d311f0f0fd28c3761bc30f74f77710e (patch) | |
tree | 3406be58b7fa67287566ca5067bcdec937281025 | |
parent | 0539f468c49a979a93143ac95609ed277774d8af (diff) | |
download | deviced-694515321d311f0f0fd28c3761bc30f74f77710e.tar.gz deviced-694515321d311f0f0fd28c3761bc30f74f77710e.tar.bz2 deviced-694515321d311f0f0fd28c3761bc30f74f77710e.zip |
Control: to enable getcontrolsubmit/tizen_4.0/20171103.012514accepted/tizen/4.0/unified/20171103.162641
Change-Id: Ib87ccd1ded1d09bf3b140d7bdeb12d9defb2f3e4
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-x | src/control/control.c | 8 |
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); } |