device-node: Fix build under 64-bit architecture 96/32996/3 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20150115.180507 accepted/tizen/ivi/20150116.082010 accepted/tizen/mobile/20150116.011319 accepted/tizen/tv/20150116.010705 accepted/tizen/wearable/20150116.010358 submit/tizen/20150115.095403 submit/tizen_ivi/20150116.111111 tizen_3.0_ivi_release
authorJiyoung Yun <jy910.yun@samsung.com>
Thu, 15 Jan 2015 05:21:07 +0000 (14:21 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Thu, 15 Jan 2015 08:09:26 +0000 (17:09 +0900)
A problem of int to pointer cast was raising
an error when building for 64 bits archs.

Change-Id: I5e9aa7b850370440c11e1c5ee3e58c381a1d71fc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
devices/led.c

index becf30e..faaa2fd 100644 (file)
@@ -39,7 +39,11 @@ static int led_set_prop(int prop, int val)
        case PROP_LED_BRIGHTNESS:
                return PLUGIN_SET(leds_torch_brightness, val);
        case PROP_LED_IR_COMMAND:
+#if __WORDSIZE == 64
+               return -ENOTSUP;
+#else
                return PLUGIN_SET(irled_control, (char*)val);
+#endif
        case PROP_LED_HARDKEY:
                return PLUGIN_SET(hardkey_backlight, val);
        }