device: remove deprecated DEVICE_INIT/DEVICE_AND_API_INIT macros
The macros have been deprecated for 2 releases so remove the code associated with them. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
88cf73d58f
commit
e021ac7673
@ -33,6 +33,7 @@ Changes in this release
|
||||
|
||||
Removed APIs in this release
|
||||
|
||||
* Removed support for the deprecated ``DEVICE_INIT`` and ``DEVICE_AND_API_INIT`` macros.
|
||||
|
||||
============================
|
||||
|
||||
|
||||
@ -94,31 +94,6 @@ typedef int16_t device_handle_t;
|
||||
pm_control_fn, \
|
||||
NULL, NULL, level, prio, NULL)
|
||||
|
||||
/**
|
||||
* @def DEVICE_INIT
|
||||
*
|
||||
* @brief Invoke DEVICE_DEFINE() with no power management support (@p
|
||||
* pm_control_fn) and no API (@p api_ptr).
|
||||
*/
|
||||
#define DEVICE_INIT(dev_name, drv_name, init_fn, \
|
||||
data_ptr, cfg_ptr, level, prio) \
|
||||
__DEPRECATED_MACRO \
|
||||
DEVICE_DEFINE(dev_name, drv_name, init_fn, NULL, \
|
||||
data_ptr, cfg_ptr, level, prio, NULL)
|
||||
|
||||
/**
|
||||
* @def DEVICE_AND_API_INIT
|
||||
*
|
||||
* @brief Invoke DEVICE_DEFINE() with no power management support (@p
|
||||
* pm_control_fn).
|
||||
*/
|
||||
#define DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, \
|
||||
data_ptr, cfg_ptr, level, prio, api_ptr) \
|
||||
__DEPRECATED_MACRO \
|
||||
DEVICE_DEFINE(dev_name, drv_name, init_fn, \
|
||||
NULL, \
|
||||
data_ptr, cfg_ptr, level, prio, api_ptr)
|
||||
|
||||
/**
|
||||
* @def DEVICE_DEFINE
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user