sensor: bug fix - function call w/o initializaion
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Tue, 21 Jul 2015 05:42:23 +0000 (14:42 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Tue, 21 Jul 2015 05:47:52 +0000 (14:47 +0900)
commitc1932905e088c54e9f239920eb78c54add29bdca
treec3cbbb2e74b1acc7084994fb8c8c9c0d81e82c91
parentf898b887da28dfac06f737d0285e14e3f2e24818
sensor: bug fix - function call w/o initializaion

mutex is used at set_sensor_data() and it is initialized when device is
realized.
Sensor may be used in some profile, such as tv.
However, skin will set rotation without considering profile.
Therefore, sensor will set value after checking validity.

Change-Id: If7482bdea338883ae82fbffa82ce86b06a029b3f
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
tizen/src/hw/virtio/maru_virtio_sensor.c