Commit 655c268d authored by Tomasz Bursztyka's avatar Tomasz Bursztyka Committed by Anas Nashif
Browse files

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: default avatarTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
parent 0ff961fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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