mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
drivers/mtd_default: remove deprecated mtd_default_get_dev()
use `mtd_dev_get()` instead deprecated in https://github.com/RIOT-OS/RIOT/pull/20078
This commit is contained in:
parent
76e028e51d
commit
23d7f99f2b
@ -41,21 +41,6 @@ extern mtd_sdcard_t mtd_sdcard_dev0;
|
||||
extern mtd_emulated_t mtd_emulated_dev0;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Get the default MTD device by index
|
||||
*
|
||||
* @deprecated Use @ref mtd_dev_get instead
|
||||
*
|
||||
* @param[in] idx Index of the MTD device
|
||||
*
|
||||
* @return MTD_0 for @p idx 0 and so on
|
||||
* NULL if no MTD device exists for the given index
|
||||
*/
|
||||
static inline mtd_dev_t *mtd_default_get_dev(unsigned idx)
|
||||
{
|
||||
return ((MTD_NUMOF != 0) && (idx < MTD_NUMOF)) ? mtd_dev_xfa[idx] : NULL;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user