subsys/cfb: correct font definition macro for linker script

This macro provides the required alignment directives to ensure that the
font definitions are placed properly for iteration as members of an
array object.

Closes #17581

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2019-07-16 14:57:12 -05:00 committed by Andrew Boie
commit a66a036a8f
2 changed files with 2 additions and 3 deletions

View file

@ -67,8 +67,7 @@ struct cfb_font {
* @param _lc Character mapped to last font element.
*/
#define FONT_ENTRY_DEFINE(_name, _width, _height, _caps, _data, _fc, _lc) \
static const struct cfb_font _name \
__attribute__ ((section(".font_entry."))) __attribute__((used)) = \
static const Z_STRUCT_SECTION_ITERABLE(cfb_font, _name) = \
{ \
.width = _width, \
.height = _height, \