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:
parent
0ff961fb29
commit
655c268d21
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue