diff options
author | Dirk Brandewie <dirk.j.brandewie@intel.com> | 2015-07-22 07:09:53 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:15:19 -0500 |
commit | 6c9a846eaeb01d801037b69bc44ca094e1d1e9d9 (patch) | |
tree | de55608c24ea46e494f099686325075dd3ed6c40 /include/gpio.h | |
parent | add6b9794b05d39079553744a24ec61c4d863b1b (diff) |
gpio: Fix function signature for gpio_set_callback()
Change-Id: I66c6630b2eced4e0219b0f36b1bf7b0454770290
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Diffstat (limited to 'include/gpio.h')
-rw-r--r-- | include/gpio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gpio.h b/include/gpio.h index c5cc677ce..b7d94e1cf 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -70,7 +70,7 @@ typedef int (*gpio_write_t)(struct device *port, int access_op, typedef int (*gpio_read_t)(struct device *port, int access_op, uint32_t pin, uint32_t *value); typedef int (*gpio_set_callback_t)(struct device *port, - gpio_callback_t *callback); + gpio_callback_t callback); typedef int (*gpio_enable_callback_t)(struct device *port, int access_op, uint32_t pin); @@ -142,7 +142,7 @@ inline int gpio_pin_read(struct device *port, uint32_t pin, uint32_t *value) * @param callback Application callback function. */ inline int gpio_set_callback(struct device *port, - gpio_callback_t *callback) + gpio_callback_t callback) { struct gpio_driver_api *api; |