From 04fd20f5a06355fc0afe110337ccb9dc7445ad1d Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Thu, 15 Jan 2015 14:21:07 +0900 Subject: [PATCH] device-node: Fix build under 64-bit architecture 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 --- devices/led.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devices/led.c b/devices/led.c index becf30e..faaa2fd 100644 --- a/devices/led.c +++ b/devices/led.c @@ -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); } -- 2.34.1