gpio: Deprecate API 1.0 callback function

If one use the old gpio_set_callback() function,
the build will generate deprecation warnings.

Change-Id: I3f008ab3fc46e1b38cb433340d2f97671d04906e
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-04-15 16:52:16 +02:00 committed by Anas Nashif
commit 655c268d21

View file

@ -274,7 +274,8 @@ static inline int gpio_pin_read(struct device *port, uint32_t pin,
* by gpio_add_callback() and gpio_remove_callback().
* Using this function will not collide with the new ones.
*/
int gpio_set_callback(struct device *port, gpio_callback_t callback);
int __deprecated gpio_set_callback(struct device *port,
gpio_callback_t callback);
/**
* @brief Helper to initialize a struct gpio_callback properly