Skip to content

Commit

Permalink
Merge pull request #20113 from gschorcht/drivers/mtd/fix_xfa
Browse files Browse the repository at this point in the history
drivers/mtd: fix the order of entries in the MTD pointer XFA `mtd_dev_xfa`
  • Loading branch information
benpicco authored Nov 27, 2023
2 parents 31224b4 + ff79f39 commit ad7bf85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/include/mtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ mtd_dev_t * const mtd_dev_xfa[];
* @param dev MTD device
* @param idx Priority of the MTD device pointer within the XFA
*/
#define MTD_XFA_ADD(dev, idx) XFA_CONST(mtd_dev_xfa, 0) mtd_dev_t *mtd ## idx = (mtd_dev_t *)&(dev)
#define MTD_XFA_ADD(dev, idx) \
XFA_CONST(mtd_dev_xfa, idx) mtd_dev_t *mtd ## idx = (mtd_dev_t *)&(dev)

/**
* @brief Number of MTDs defined in the MTD device array in XFA
Expand Down

0 comments on commit ad7bf85

Please sign in to comment.