pio: deliver user data to gpio interrupted callback function 00/170300/1 accepted/tizen/unified/20180219.142443 submit/tizen/20180219.102234
authorkibak.yoon <kibak.yoon@samsung.com>
Mon, 19 Feb 2018 03:42:04 +0000 (12:42 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Mon, 19 Feb 2018 03:42:04 +0000 (12:42 +0900)
Change-Id: Ib0048d8031a5799e0a495adafdbc4f824e117801
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/interface/peripheral_interface_gpio.c

index 90c2a21..ce9dbf4 100644 (file)
@@ -187,7 +187,7 @@ void peripheral_interface_gpio_close(peripheral_gpio_h gpio)
 static gboolean __peripheral_interface_gpio_interrupted_cb_invoke(gpointer data)
 {
        peripheral_gpio_h gpio = (peripheral_gpio_h)data;
-       gpio->cb_info.cb(gpio, gpio->cb_info.error, NULL);
+       gpio->cb_info.cb(gpio, gpio->cb_info.error, gpio->cb_info.user_data);
        return FALSE;
 }
 
@@ -266,4 +266,4 @@ int peripheral_interface_gpio_unset_interrupted_cb(peripheral_gpio_h gpio)
        }
 
        return PERIPHERAL_ERROR_NONE;
-}
\ No newline at end of file
+}