1
0
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:
Mikolai Gütschow 2025-04-08 15:05:34 +02:00
parent 76e028e51d
commit 23d7f99f2b
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5

View File

@ -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